-
-
Notifications
You must be signed in to change notification settings - Fork 60
feat: Actually land: Enhanced token management with proactive validation and expiration support #121
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
base: master
Are you sure you want to change the base?
feat: Actually land: Enhanced token management with proactive validation and expiration support #121
Conversation
- fresh: 0.4.3 -> 0.5.0 - fresh_dio: 0.4.3 -> 0.5.0 - fresh_graphql: 0.6.1 -> 0.7.0
- Replace AuthToken with Token base class - Remove automatic issuedAt setting in FreshMixin - Update OAuth2Token to extend Token instead of AuthToken - Remove outdated tests for copyWith and automatic issuedAt - Update changelogs to remove breaking change mentions Token architecture is now extensible without breaking changes.
|
Thanks I'll take a closer look later either today or tomorrow and try to get this merged. Really appreciate you taking the time to ship these improvements 💯 |
|
I much preferred |
| @@ -1,3 +1,10 @@ | |||
| # 0.7.0 | |||
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.
why the bump to 0.7.0 instead of 0.5.0?
|
|
||
| environment: | ||
| sdk: ">=2.12.0 <4.0.0" | ||
| sdk: ">=3.0.0 <4.0.0" |
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.
is the sdk bump needed?
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.
The code uses, for example
if (token case Token(:final DateTime expiresAt))
You can do without it, but is it necessary to support Dart < 3.0 in new versions of the package?
| funding: [https://github.com/sponsors/felangel] | ||
|
|
||
| version: 0.4.3 | ||
| version: 0.7.0 |
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.
| version: 0.7.0 | |
| version: 0.5.0 |
why not 0.5.0?
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.
To synchronize versions in all packages? Although, perhaps this is not necessary
| dependency: | ||
| meta: ^1.10.0 |
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.
why is this needed?
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.
It seems that it is no longer necessary, so it can be removed
|
@passsy Hi, can you go back to that? |
Building on top of #117
tested it all day, it works fine :)
The versioning and breaking changes (like raising min-sdk) need to be considered