Microsoft
-
Supplying "issuer" fails, because Microsoft returns
issuerwith the literal stringhttps://login.microsoftonline.com/{tenantid}/v2.0whenhttps://login.microsoftonline.com/common/v2.0/.well-known/openid-configurationis queried.. We need to manually specifyserviceConfiguration. -
REDIRECT_URLvaries based on platform:- iOS: msauth.com.example.app://auth/
- Android: com.example.app://msauth/
<SIGNATURE_HASH>/
-
Microsoft does not have. revocationEndpoint.
const config = {
serviceConfiguration: {
authorizationEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
tokenEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
},
clientId: '<APPLICATION_ID>',
redirectUrl: '<REDIRECT_URL>',
scopes: ['openid', 'profile', 'email', 'offline_access'],
};
// Log in to get an authentication token
const authState = await authorize(config);
// Refresh token
const refreshedState = await refresh(config, {
refreshToken: authState.refreshToken,
});