Skip to content

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.

void

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

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.

void

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

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.

void

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

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

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

  • subOrgId

void

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