Skip to main content

token_manager_gql 0.1.2 copy "token_manager_gql: ^0.1.2" to clipboard
token_manager_gql: ^0.1.2 copied to clipboard

Single-flight OAuth/JWT refresh for GraphQL: a gql_link Link that attaches the access token, refreshes once on a rejection and replays the request.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add token_manager_gql

With Flutter:

 $ flutter pub add token_manager_gql

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  token_manager_gql: ^0.1.2

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:token_manager_gql/token_manager_gql.dart';
0
likes
160
points
32
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Single-flight OAuth/JWT refresh for GraphQL: a gql_link Link that attaches the access token, refreshes once on a rejection and replays the request.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#graphql #gql #authentication #oauth #refresh-token

License

MIT (license)

Dependencies

gql_exec, gql_link, token_manager

More

Packages that depend on token_manager_gql