signInRedirect Method

Attempts a sign-in via redirection with the authorization provider. If possible, a non-interactive signin will be attempted first. If successful, the returned promise will be resolved. Otherwise, an attempt to redirect the browser will proceed. If an error prevents the redirection from occurring, the returned promise will be rejected with the responsible error. Otherwise, the browser's window will be redirected away from the current page, effectively ending execution here.

signInRedirect(requestContext: ClientRequestContext, successRedirectUrl?: string, args?: BrowserAuthorizationClientRequestOptions): Promise<void>

Parameter Type Description
requestContext ClientRequestContext  
successRedirectUrl string  
args BrowserAuthorizationClientRequestOptions  

Returns - Promise<void>

Defined in

Last Updated: 11 June, 2024