I'm using react-native-app-auth package to do my sign in process with MS Graph API. The problem that I face here is,
When we do the login using,
import { authorize } from 'react-native-app-auth';
const config = {
issuer: '<YOUR_ISSUER_URL>',
clientId: '<YOUR_CLIENT_ID>',
redirectUrl: '<YOUR_REDIRECT_URL>',
scopes: ['<YOUR_SCOPES_ARRAY>'],
};
const result = await authorize(config);
And this opens the MS Authentication page in an in-app browser(from the react native app) and there it asks for username/password and does the authorization and returns back to the app(react native) with the access token.
Problem: When I open the safari browser and open office.com or outlook.com and click on sign in it automatically takes to the home page without asking for credentials.
But we don't want this to happen. Any idea to prevent or sort this out?
Thanks in advance.
Regards, RJ