Conversation
fix: display the added new token
* NFT list * NFT list * NFT list
fix: login jwt force refresh
PR SummaryEnhanced Firebase authentication by implementing forced JWT token refresh, improved NFT list view functionality with grid/list toggle support, and optimized token management for better display of newly added tokens. Also includes version bump to 298. Changes
autogenerated by presubmit.ai |
There was a problem hiding this comment.
🚨 Pull request needs attention.
Review Summary
Commits Considered (6)
fix: login jwt force refresh
-
NFT list
-
NFT list
-
NFT list
fix: display the added new token
- 0eea9bc: fix: display the added new token
Files Processed (6)
- app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt (1 hunk)
- app/src/main/java/com/flowfoundation/wallet/manager/token/FungibleTokenListManager.kt (2 hunks)
- app/src/main/java/com/flowfoundation/wallet/page/nft/nftlist/NftViewModel.kt (2 hunks)
- app/src/main/java/com/flowfoundation/wallet/page/nft/nftlist/presenter/NFTFragmentPresenter.kt (1 hunk)
- app/src/main/java/com/flowfoundation/wallet/page/token/addtoken/AddTokenViewModel.kt (1 hunk)
- gradle.properties (1 hunk)
Actionable Comments (1)
-
app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt [40-40]
security: "Security concern with logging sensitive authentication token"
Skipped Comments (2)
-
app/src/main/java/com/flowfoundation/wallet/firebase/auth/FirebaseAuth.kt [38-47]
possible issue: "Potential memory leak in async callback chain"
-
app/src/main/java/com/flowfoundation/wallet/manager/token/FungibleTokenListManager.kt [192-199]
enhancement: "Simplify nested null checks"
| if (task.isSuccessful) { | ||
| auth.currentUser?.getIdToken(true)?.addOnSuccessListener { result -> | ||
| val jwt = result.token | ||
| logd(TAG, "get token finish, token:${jwt}") |
There was a problem hiding this comment.
Avoid logging sensitive information like JWT tokens, even in debug logs. This could lead to token exposure if logs are captured. Consider logging only non-sensitive metadata or removing the token from the log message.
Related Issue
Closes #???
Summary of Changes
Need Regression Testing
Risk Assessment
Additional Notes
Screenshots (if applicable)