Closed jgentes closed 3 months ago
@jgentes, thanks for raising this issue! ๐๐ผ This method is used when a user has an OAuth2 session and they need to refresh the access token from the provider. is that what you're trying to do?
Yes, this is after authenticating with oAuth (Google) - I can issue account.getSession('current') and it returns fine. This is being issued from the browser, not Node.
@jgentes, oh wait. you're trying to refresh a google oauth2 session? There's an open issue with google's oauth2 as we aren't getting the refresh token. I would suggest you add a ๐๐ผ to https://github.com/appwrite/appwrite/issues/5987. As that's the underlying issue, I'm going to close this as a duplicate.
๐ Reproduction steps
Issue
await account.updateSession('current')
which sends a request tohttps://cloud.appwrite.io/v1/account/sessions/current
and results inAppwriteException: invalid_request: Missing required parameter: refresh_token
๐ Expected behavior
The docs suggest using the string
current
to refresh the current session, however that appears to be an invalid request: https://appwrite.io/docs/references/cloud/client-web/account๐ Actual Behavior
400 response from the endpoint
๐ฒ Appwrite version
Version 0.10.x
๐ป Operating system
Windows
๐งฑ Your Environment
This is after authenticating with oAuth (Google) - I can issue
account.getSession('current')
and it returns fine. This is being issued from the browser, not Node.๐ Have you spent some time to check if this issue has been raised before?
๐ข Have you read the Code of Conduct?