Skip to content

Conversation

@AkshatG6
Copy link
Contributor

@AkshatG6 AkshatG6 commented Sep 15, 2025

This pull request improves the sign-in flow to request, decode, and display the auth_time claim for both iOS and macOS sample apps.

Key changes:

  • Request auth_time claim: Updated the GIDSignIn.sharedInstance.signIn(...) call to include GIDTokenClaim.authTime().
  • JWT Decoding: Extended AuthenticationViewModel to parse the idToken from the GIDGoogleUser and extract the auth_time value.
  • UI Update: The user's profile view has been updated to display the formatted "Last sign-in date" if it's available.

UI Comparison


iOS

Before After
image image

macOS

Before After
image image

@AkshatG6 AkshatG6 requested a review from mdmathias September 15, 2025 16:01
@AkshatG6 AkshatG6 requested a review from mdmathias September 15, 2025 22:44
@AkshatG6 AkshatG6 merged commit 40b9692 into gandhiakshat/sbc-auth_time Sep 15, 2025
12 checks passed
@AkshatG6 AkshatG6 deleted the gandhiakshat/sbc-auth_time-sample-app branch September 15, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants