-
Couldn't load subscription status.
- Fork 98
CG-1904 improve expired session ux #1200
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
CG-1904 improve expired session ux #1200
Conversation
…ns. This enables the session to pick-up options set by the root command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the UX around expired sessions by updating the planet-auth library and implementing a new ensure_initialized() method that handles session state management more intelligently.
- Updates planet-auth dependency to version 2.3.0a1759946524 for improved expired session handling
- Adds new
ensure_initialized()method that automatically handles session refresh and user prompts only when necessary - Updates example code to demonstrate the improved session management pattern
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyproject.toml | Updates planet-auth dependency to new pre-release version |
| planet/auth.py | Adds ensure_initialized() method and improves type annotations |
| examples/auth-session-management/*.py | Updates examples to use new ensure_initialized() pattern |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! The detailed docstring for ensure_initialized() is super helpful!
Pull in latest planet-auth library to improve the UX around expired sessions.