AuthSession: Refresh Token null using Azure AD implicit grant

SDK Version: 44.0.0
Platforms(Android/iOS/web/all): tested on web
Tag: AuthSession, azure
**ExpoAuthSession Version: “3.5.0”

I’m having some issue with the azure authentication through the AuthSession package.

This is my configuration:

const discovery = useAutoDiscovery('https://login.microsoftonline.com/<TENAND_ID>/v2.0');
    const [request, response, promptAsync] = useAuthRequest({
            clientId: '<CLIENT_ID>',
            scopes: ['openid', 'profile', 'offline_access'],
            redirectUri: makeRedirectUri({
            scheme: "myapp"
            }),
            responseType: "token id_token",
            extraParams: {
                "nonce": "<NONCE>"            
            },
            codeChallengeMethod: AuthSession.CodeChallengeMethod.S256
        },
        discovery
    );

And this is the way I’m starting the authentication process:

const result: any = await promptAsync();

The result contains the authentication field that has an access_token, an id_token but contains a null refresh_token.

Anyone has had the same issue?

Thank You for you time.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.