Attempts to authorize the current user, and resolves when the authorization process is complete. Once the returned promises resolves, getAccessToken will return a valid AccessToken.

signIn(): Promise<void>

@note On Windows and MacOS, this will cache the refreshToken in secure storage to reduce the frequency of interactive sign-in.

@note This function succeeds only if the user authorizes your application. If the user never clicks Accept, no feedback is provided.

Returns - Promise

Defined in

Last Updated: 24 June, 2025