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(successRedirectUrl?: string, args?: BrowserAuthorizationClientRequestOptions): Promise<void>

Parameter Type Description
successRedirectUrl string (optional) path to redirect to after a successful authorization
args BrowserAuthorizationClientRequestOptions (optional) additional BrowserAuthorizationClientRequestOptions passed to signIn methods

Returns - Promise

Defined in

Last Updated: 24 June, 2025