Hosted Post Url in v3 redirect to v2 version

Hello,
I have made following nylasHostUrl:
https://api.eu.nylas.com/v3/connect/auth?client_id=20f1c644-c0b1-4c62-b6ac-0109aad8fcd6&redirect_uri=http://localhost:43344/api/Integration/EmailAndCalendarMasterAccountCallback&response_type=code&access_type=online&provider=google&login_hint=nylasv3@gmail.com
but when i click on continue button on Email Authentication screen then its navigation to a new URL which is v2 url as you can check in below url:
https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?access_type=offline&client_id=453995621555-6hqanqi6rp14b2jp5si1pda1qh9h2lua.apps.googleusercontent.com&include_granted_scopes=true&project_id=nylas-quickstart&prompt=consent&redirect_uri=https%3A%2F%2Fapi.eu.nylas.com%2Fv3%2Fconnect%2Fcallback&response_type=code&scope=openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.compose%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.modify%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.labels%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.send%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly&state=QF5IeYcTjSBEQpMOAArJ449LTadA7GRsnENB&topic_name=projects%2Fnylas-quickstart%2Ftopics%2Fnylas-gmail-realtime&login_hint=nylasv3%40gmail.com&service=lso&o2v=2&ddm=0&flowName=GeneralOAuthFlow

why v3 is redirecting to v2? It should be redirect to v3. please help

1 Like

Hello @Emmad_Altaf There’s nothing to worry about :smile: While the first part of the auth runs on V3, the second part which does the actual authorization runs on V2 servers as this communication between Nylas and the provider (in this case Google) so no need at this time to change it. You application will be running on V3 no matter what, so it’s all good :wink:

1 Like

yeah, got it! thanks for updating me.

Thanks for this. I also faced the same issue!