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

Want to use fresh_graphql (or any jwt token refresh) #296

Closed
appinteractive opened this issue Oct 29, 2021 · 2 comments
Closed

Want to use fresh_graphql (or any jwt token refresh) #296

appinteractive opened this issue Oct 29, 2021 · 2 comments

Comments

@appinteractive
Copy link

I would like to use https://pub.dev/packages/fresh_graphql as the documentation here is incomplete regarding JWT Token refreshing and doing it manually resulting currently in instabilities.

Therefor, I tried to use the fresh_graphql, but I get the following message when adding it as a dependency:

flutter pub add fresh_graphql           
Because ferry >=0.10.3 depends on rxdart ^0.27.1 and graphql >=4.0.3-alpha.1 depends on rxdart ^0.26.0, ferry >=0.10.3 is incompatible with graphql >=4.0.3-alpha.1.
And because fresh_graphql >=0.5.0 depends on graphql ^5.0.0-nullsafety.3, ferry >=0.10.3 is incompatible with fresh_graphql >=0.5.0.
And because fresh_graphql <0.5.0 depends on http ^0.12.1 and news_or_fake depends on ferry ^0.10.4, every version of fresh_graphql requires http ^0.12.1.
So, because news_or_fake depends on both http ^0.13.3 and fresh_graphql any, version solving failed.
pub finished with exit code 65

Any chance to get it working somehow or any other resource, how to add a token refresh without bloating my client to the max?

@appinteractive appinteractive changed the title Want to use fresh_graphql Want to use fresh_graphql (or any jwt token refresh) Oct 29, 2021
@smkhalsa
Copy link
Member

smkhalsa commented Nov 3, 2021

I don't know anything about fresh_graphql, but I'm not sure why they'd need a dependency on graphql.

They should be able to replace it with just gql_link which doesn't have a dependency on rxdart. Maybe open an issue there?

Closing since this isn't really related to ferry

@smkhalsa smkhalsa closed this as completed Nov 3, 2021
@appinteractive
Copy link
Author

Thanks for your response, will take a look 👍

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

No branches or pull requests

2 participants