Headless - Social Auth
Welcome to the Social Auth integration guide! Follow these steps to send and verify phone and email using the OTPLESS Headless SDK.
Prerequisites
- Make sure you have followed the SDK Setup Guide before starting with this document.
- Ensure you have admin access to the OTPless Account.
Configure OAuth platforms on Dashboard
- Log in to the OTPless dashboard with your registered email ID.
- Go to Configure Channel.
- Enable the channels from list of social Auth.
Important: Don’t forget to save and publish the configuration.
Choose your Programming Language:
Step 1: Initiate Social Auth
To initiate Social Auth for phone number or email verification
Request
Enums for social auth
Response
Step 2: Get Auth Token
Awesome! You’ve completed the client-side integration. Now, after the User identity is verified with social platform, you’ll get a callback with the ONETAP
response containing the token. You’ll need to parse the token from the response JSON.
Sample Callback JSON
You can view a complete sample response here
How to parse the token from response?
🏁 Check Point : Verify Auth Token
Once you have retrieved the token, send it to your backend and call the verify token API.
Verify Token API →
Was this page helpful?