You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like we did store them with some login paths (non-web?), but then they were never used (GoogleAuth.authClientForUser is never called), so that might only be a partial implementation. Maybe we can also just capture new ones on subsequent logins if needed, and then capture them for all logins.
@SandPod No, the flow implemented in the PR does not use the refresh tokens, but instead gets an identity token from Google and logs in based on that.
I'm not sure which previous flow used the refresh token, though that might be useful to get subsequent account updates (or poll for them), just like we do in for Apple-auth.
Likewise, we might want to use "local" verification of the token based on Google's published keys (like we do for Apple), instead of calling their API. (Though the end result would be the same here. The biggest surprise was that the identity token schema I received from Google during testing did not fully match the one in serverpod_auth, the "email verified" field name changed. But then I didn't have time to check that against the old flow, or whether even the web auth was not using the identity token approach there…).
PS: Probably the best way forward here is to deploy the test auth backend, and connect it to an Android app, to see whether the current identity token approach is sufficient or whether anything else is needed (I did not get around to that, as you need a properly set up app as well for testing this).
Activity
feat(auth2): Add support for Google account in backwards compatibilit…
feat(auth2): Add support for Google account in backwards compatibilit…
feat(auth2): Add support for Google account in backwards compatibilit…
feat(auth2): Add support for Google account in backwards compatibilit…
feat(auth2): Add support for Google account in backwards compatibilit…
feat(auth2): Add support for Google account in backwards compatibilit…
SandPod commentedon Aug 13, 2025
@tp Was this resolved by #3778?
tp commentedon Aug 13, 2025
@SandPod No, the flow implemented in the PR does not use the refresh tokens, but instead gets an identity token from Google and logs in based on that.
I'm not sure which previous flow used the refresh token, though that might be useful to get subsequent account updates (or poll for them), just like we do in for Apple-auth.
Likewise, we might want to use "local" verification of the token based on Google's published keys (like we do for Apple), instead of calling their API. (Though the end result would be the same here. The biggest surprise was that the identity token schema I received from Google during testing did not fully match the one in
serverpod_auth, the "email verified" field name changed. But then I didn't have time to check that against the old flow, or whether even the web auth was not using the identity token approach there…).PS: Probably the best way forward here is to deploy the test auth backend, and connect it to an Android app, to see whether the current identity token approach is sufficient or whether anything else is needed (I did not get around to that, as you need a properly set up app as well for testing this).