Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make various improvements #9

Merged
merged 9 commits into from
Mar 10, 2025
Merged

Make various improvements #9

merged 9 commits into from
Mar 10, 2025

Conversation

halter73
Copy link
Collaborator

@halter73 halter73 commented Mar 7, 2025

Most if it is non-functional stylistic improvements, but I also fixed the error message when the client fails to log in because the server is down, and fixed the 401 rather than login redirect when you would get upon logout.

The sample now also checks the expiration of the access token each time it's used and refreshes it when necessary. Previously, the access token was only being checked at application start. This can be important if people leave the application open for over an hour which is the default token expiration.

@halter73 halter73 requested review from BethMassi and Copilot March 7, 2025 21:41
- Remove call to Logout when initializing authentication state
- Logout when a valid access token cannot be retrieved
@halter73 halter73 force-pushed the halter73/suggestions branch from c33a9cf to 1a2f455 Compare March 7, 2025 22:10
Copy link
Owner

@BethMassi BethMassi left a comment

Choose a reason for hiding this comment

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

Readme needs updating but I can do that. Thank you!

@BethMassi BethMassi merged commit eb43854 into main Mar 10, 2025
@BethMassi BethMassi deleted the halter73/suggestions branch March 10, 2025 21:52
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.

2 participants