Skip to content

fix: login jwt force refresh#1171

Merged
jaymengxy merged 1 commit intodevelopfrom
fix_restore
Jun 10, 2025
Merged

fix: login jwt force refresh#1171
jaymengxy merged 1 commit intodevelopfrom
fix_restore

Conversation

@jaymengxy
Copy link
Copy Markdown
Contributor

Related Issue

Closes #1162

Summary of Changes

Need Regression Testing

  • Yes
  • No

Risk Assessment

  • Low
  • Medium
  • High

Additional Notes

Screenshots (if applicable)

@jaymengxy jaymengxy self-assigned this Jun 10, 2025
@jaymengxy jaymengxy requested a review from a team as a code owner June 10, 2025 08:10
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 10, 2025

PR Summary

Enhanced the Firebase authentication process by implementing forced JWT token refresh after custom token sign-in. This change ensures a fresh ID token is obtained immediately after authentication, improving token validity and session management. The update also includes a version code bump from 297 to 298.

Changes

File Summary
app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt Modified firebaseCustomLogin to force refresh the ID token after successful authentication. Added explicit success and failure handling with proper logging of the new token.
gradle.properties Incremented version code from 297 to 298 while maintaining version name at r2.8.7.

autogenerated by presubmit.ai

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 Pull request needs attention.

Review Summary

Commits Considered (1)
  • ff603b2: fix: login jwt force refresh
Files Processed (2)
  • app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt (1 hunk)
  • gradle.properties (1 hunk)
Actionable Comments (2)
  • app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt [53-53]

    possible bug: "Redundant callback invocation could lead to duplicate responses"

  • app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt [40-40]

    security: "Sensitive information logged"

Skipped Comments (0)

Comment thread app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt Outdated
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 Pull request needs attention.

Review Summary

Commits Considered (1)
  • 94eb4ec: fix: login jwt force refresh
Files Processed (2)
  • app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt (1 hunk)
  • gradle.properties (1 hunk)
Actionable Comments (1)
  • app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt [38-47]

    possible issue: "Potential memory leak in Firebase token listener"

Skipped Comments (1)
  • app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt [44-44]

    possible issue: "Firebase messaging token fetched after callback completion"

@jaymengxy jaymengxy merged commit 659b7f2 into develop Jun 10, 2025
3 checks passed
@jaymengxy jaymengxy deleted the fix_restore branch June 10, 2025 08:15
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.

Failed to restore by multi backup

2 participants