Av/session persistence#43
Open
anushkavidanage wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Details
Description
Adds automatic session persistence to
SolidAuthManagerso that users do not need to log in again on every app launch.After a successful login, the package now saves the OIDC issuer URI, requested scopes, and DPoP RSA key pair to platform-native secure storage (via
OidcDefaultStore). A newtryRestoreSession()method silently restores a previous session on app startup.logout()andforgetUser()both clear the stored session. The example appLoginScreenis updated to demonstrate the pattern. It shows a loading spinner on startup and navigates straight to the authenticated screen if a session is found.Related Issues
#40
anusii/solidpod#641
anusii/solidui#270
Type of Change
How To Test?
cd example && flutter run) on any platform (desktop/mobile/web).logoutbutton. Close and reopen the app. Confirm the login screen is shown (stored session was cleared).refresh tokenis available, let the access token expire (or shorten its TTL on the server) and reopen the app. Confirm the session is still restored via a transparent token refresh.Checklist
make preporflutter analyze lib)dart testoutput or screenshot included in issue #Finalising