Skip to content

Function: generateAuthorizationUrl()

ts
function generateAuthorizationUrl(params): string;

Defined in: src/core/oauth/helpers.ts:64

Stable

Build the URL to send the user to so they can grant access.

state is yours to generate and to verify when the callback comes back — it is what stops CSRF on the redirect.

Parameters

ParameterType
params{ audience?: string; clientId: string; prompt?: string; redirectUri: string; scopes: string[]; state: string; }
params.audience?string
params.clientIdstring
params.prompt?string
params.redirectUristring
params.scopesstring[]
params.statestring

Returns

string