How to do social sign-in?
Overview
You must first activate the OAUTH provider you are using.
In order to sign-up/sign in a user using OAUTH providers you must follow the three-step process:
First, create a URL for OAUTH sign-in either via Javascript SDK or REST AUTH API.
Then, a user needs to be redirected to
authUri
received in step 1 and authenticate using their credentials with the OAUTH providerFinally, once the authentication is successful, the user is redirected to the provided
callbackUrl
with thetoken
orcode
variables can be found as query parameters depending on the OAUTH provider. Those parameters among others need to be passed toSign in with OAUTH
method in Javascript SDK or REST AUTH API.
Last updated