Skip to content

Updated sample app to support auth_time - #555

Merged
AkshatG6 merged 8 commits into
gandhiakshat/sbc-auth_timefrom
gandhiakshat/sbc-auth_time-sample-app
Sep 15, 2025
Merged

AkshatG6 merged 8 commits into
gandhiakshat/sbc-auth_timefrom
gandhiakshat/sbc-auth_time-sample-app

Conversation

@AkshatG6

@AkshatG6 AkshatG6 commented Sep 15, 2025 •

Copy link
Copy Markdown
Contributor

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
@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

3 participants