Skip to Content
AuthSocial

Social (OAuth) Authentication

After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.

Apple

After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.apple.

init()

Parameters

void

Returns

Promise<string> Returns the URL needed for starting authentication with Apple, to which the user should be redirected.

Example

const initializeAppleOAuth = await sdk.auth.oauth.apple.init()

Facebook

After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.facebook.

init()

Parameters

void

Returns

Promise<string> Returns the URL needed for starting authentication with Facebook, to which the user should be redirected.

Example

const initializeFacebookOAuth = await sdk.auth.oauth.facebook.init()

Google

After instantiating the SDK (which is explained here), you’re allowed to use the following methods from auth.oauth.google.

init()

Parameters

void

Returns

Promise<string> Returns the URL needed for starting authentication with Google, to which the user should be redirected.

Example

const initializeGoogleOAuth = await sdk.auth.oauth.google.init()

Complete OAuth Authentication

complete()

Parameters

CompleteParams The parameters necessary to complete the authentication process (subOrgId).

  • subOrgId

Returns

void

Example

const completeOAuth = await sdk.auth.oauth.complete({ subOrgId: 'SUB_ORG_ID', })