Browser doesn't ask for credentials the 2nd time
Closed this issue · 0 comments
808thlife commented
After logging in as X user, the built-in browser just doesn't ask for anymore credentials and just logging user in using previous used credentials.
The code for login in function
final AuthorizationTokenResponse result =
await appAuth.authorizeAndExchangeCode(
AuthorizationTokenRequest(
Constants.oauth2ClientId,
'com.application.app:/oauthredirect',
serviceConfiguration: AuthorizationServiceConfiguration(
authorizationEndpoint: API.oauth2authorize().toString(),
tokenEndpoint: API.oauth2token().toString(),
),
preferEphemeralSession: true,
scopes: [
'read',
'write',
],
allowInsecureConnections: true,
),
);