createXAuthProvider

View Source

Summary

Creates an X auth provider using OAuth 2.0 Authorization Code with PKCE.

Signature

function createXAuthProvider(
  options: XAuthProviderOptions,
): OAuthProvider<XAuthProfile, "x", OAuthStandardTokens>;

Params

options

X client settings for your application.

Returns

An OAuth provider that can be passed to startExternalAuth() and finishExternalAuth().