Skip to content

Conversation

@passsy
Copy link
Contributor

@passsy passsy commented Oct 19, 2025

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

StarProxima and others added 13 commits August 15, 2025 19:26
- 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.
@passsy passsy requested a review from felangel as a code owner October 19, 2025 20:01
@passsy passsy changed the title feat: Enhanced token management with proactive validation and expiration support feat: Actually land: Enhanced token management with proactive validation and expiration support Oct 19, 2025
@felangel felangel added the enhancement New feature or request label Oct 19, 2025
@felangel
Copy link
Owner

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 💯

@felangel
Copy link
Owner

Also @passsy curious what your thoughts are on the changes in #112 since that branch includes a much smaller diff while still attempting to address #110? We have some users already using that branch in production successfully.

@passsy
Copy link
Contributor Author

passsy commented Oct 19, 2025

I much preferred expiresAt being part of the Token instead of isExpired on the TokenStorage

@@ -1,3 +1,10 @@
# 0.7.0
Copy link
Owner

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"
Copy link
Owner

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?

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
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
version: 0.7.0
version: 0.5.0

why not 0.5.0?

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

Comment on lines +13 to +14
dependency:
meta: ^1.10.0
Copy link
Owner

Choose a reason for hiding this comment

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

why is this needed?

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

@StarProxima
Copy link

@passsy Hi, can you go back to that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants