-
Notifications
You must be signed in to change notification settings - Fork 247
Open
Labels
bugSomething isn't workingSomething isn't workingtriageIssues that need to be triagedIssues that need to be triaged
Description
Describe the bug
I am getting a serverAuthCode which doesn't gives Refresh_token_expires_in from google Oauth token api call when user not checkmarked the ongoing access for google account.
To Reproduce
Steps to reproduce the behavior:
- Call GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController, hint: email, additionalScopes: scopes)
- User get prompted for google sign inand then scopes list will be shown to the user.
- User will not select Ongoing access and select all required scopes, then click on continue.
- Code side we will get serverAuthCode and we will use google Oauth token api to get refresh token.
- We will get refresh token but not refresh_token_expires_in to know whether refresh token is long lived or not.
Expected behavior
As user has not selected ongoing access, we should be getting refresh_token_expires_in and it should be 15551999.
Environment
- Device: iPhone 11
- OS: 18.2.1
- Browser: Internal browser(may be safari) launch by GIDSignIn
Additional context
Either you can expose refresh_token_expires_in from GIDSignIn response or can provide a serverAuthCode which helps in getting the same. I have tried with serverAuthCode got from android app and call google OAuth token api and that gives the refresh_token_expires_in.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageIssues that need to be triagedIssues that need to be triaged