Initializes and completes the sign-in process for the user.

Once the promise is returned, use getAccessToken to retrieve the token.

The following actions happen upon completion of the promise:

  • calls the onUserStateChanged() call back after the authorization completes or if there is an error.
  • will attempt in order: (i) load any existing authorized user from storage, (ii) an interactive signin that requires user input.

signIn(): Promise<void>

Returns - Promise

Defined in

Last Updated: 24 June, 2025