After back to my callback page from self hosted oauth2 redirect url for google provider, the callback page call the account.updateSession("current") method to get the new session. I got this error:
Developers are encountering an error when calling the account.updateSession("current") method after being redirected from a self-hosted OAuth2 redirect URL for the Google provider. The error message states "invalid_request: Missing required parameter: refresh_token" with a code of 400.
Solution: The refresh_token parameter is missing in the request. Make sure to include it when calling the account.updateSession() method. This will resolve the error.