capacitor-community / generic-oauth2

Generic Capacitor OAuth 2 client plugin. Stop the war in Ukraine!
MIT License
223 stars 106 forks source link

Not able to login using Android 7.1.1 with Honeywell CT60 Device #193

Open ikalebhagyashri opened 2 years ago

ikalebhagyashri commented 2 years ago

Capacitor version:

"@capacitor/cli": "2.0.0",

Run npx cap doctor:

Library version:

OAuth Provider:

Your Plugin Configuration

export const oauthLoginApi = { authorizationBaseUrl: "https://accounts.google.com/o/oauth2/auth", accessTokenEndpoint: "https://www.googleapis.com/oauth2/v4/token", scope: "openid profile email", setPrompt: "login", web: { appId: process.env.REACT_APP_WEB_API_KEY, responseType: "code id_token token", // implicit flow accessTokenEndpoint: "", // clear the tokenEndpoint as we know that implicit flow gets the accessToken from the authorizationRequest redirectUrl: "http://localhost:8100", windowOptions: "height=600,left=0,top=0", setPrompt: "login", }, android: { appId: process.env.REACT_APP_ANDROID_CLIENT_KEY, responseType: "code", // if you configured a android app in google dev console the value must be "code" setPrompt: "login", redirectUrl: "com.abc.xyz:/" // package name from google dev console } }

Affected Platform(s):

Expected Behavior

User should able to login without redirecting to search page

Sample Code or Sample Application Repo

Reproduction Steps

1.Log in into application 2.Entered Mail Id 3.Enter password 4.After clicking on next button it redirects to search engine sometimes

Other Information