Social (OAuth) Authentication
After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.
After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.apple.
init()
Section titled “init()”Parameters
Section titled “Parameters”void
Returns
Section titled “Returns”Promise<string> Returns the URL needed for starting authentication with Apple, to which the user should be redirected.
Example
Section titled “Example”const initializeAppleOAuth = await sdk.auth.oauth.apple.init()After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.facebook.
init()
Section titled “init()”Parameters
Section titled “Parameters”void
Returns
Section titled “Returns”Promise<string> Returns the URL needed for starting authentication with Facebook, to which the user should be redirected.
Example
Section titled “Example”const initializeFacebookOAuth = await sdk.auth.oauth.facebook.init()After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.google.
init()
Section titled “init()”Parameters
Section titled “Parameters”void
Returns
Section titled “Returns”Promise<string> Returns the URL needed for starting authentication with Google, to which the user should be redirected.
Example
Section titled “Example”const initializeGoogleOAuth = await sdk.auth.oauth.google.init()Complete OAuth Authentication
Section titled “Complete OAuth Authentication”complete()
Section titled “complete()”Parameters
Section titled “Parameters”CompleteParams The parameters necessary to complete the authentication process (subOrgId).
subOrgId
Returns
Section titled “Returns”void
Example
Section titled “Example”const completeOAuth = await sdk.auth.oauth.complete({ subOrgId: 'SUB_ORG_ID',})