jwt_auth 0.0.2 copy "jwt_auth: ^0.0.2" to clipboard
jwt_auth: ^0.0.2 copied to clipboard

This Flutter plugin simplifies JWT (JSON Web Token) authentication by handling secure storage, token retrieval, and renewal in one package. It allows developers to easily authenticate users and manage [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add jwt_auth

With Flutter:

 $ flutter pub add jwt_auth

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

dependencies:
  jwt_auth: ^0.0.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:jwt_auth/bloc/jwt_authentication_bloc.dart';
import 'package:jwt_auth/bloc/jwt_authentication_event.dart';
import 'package:jwt_auth/bloc/jwt_authentication_state.dart';
import 'package:jwt_auth/jwt_auth_api_client.dart';
import 'package:jwt_auth/jwt_auth_flutter.dart';
import 'package:jwt_auth/jwt_auth_flutter_method_channel.dart';
import 'package:jwt_auth/jwt_auth_flutter_platform_interface.dart';
import 'package:jwt_auth/jwt_auth_flutter_web.dart';
import 'package:jwt_auth/jwt_auth_method_channel.dart';
import 'package:jwt_auth/jwt_auth_platform_interface.dart';
import 'package:jwt_auth/jwt_auth_storage.dart';
import 'package:jwt_auth/jwt_auth_web.dart';
import 'package:jwt_auth/jwt_authentication_interceptor.dart';
import 'package:jwt_auth/jwt_authentication_repository.dart';
import 'package:jwt_auth/models/jwt_auth_config.dart';
import 'package:jwt_auth/models/jwt_auth_log_level.dart';
import 'package:jwt_auth/models/jwt_authentication_status.dart';
import 'package:jwt_auth/models/jwt_response_error.dart';
import 'package:jwt_auth/models/jwt_response_error.g.dart';
import 'package:jwt_auth/models/jwt_token.dart';
import 'package:jwt_auth/models/jwt_token.g.dart';
import 'package:jwt_auth/requests/refresh_token_request.dart';
import 'package:jwt_auth/requests/token_request.dart';
2
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

This Flutter plugin simplifies JWT (JSON Web Token) authentication by handling secure storage, token retrieval, and renewal in one package. It allows developers to easily authenticate users and manage their sessions by storing tokens securely using flutter_secure_storage and managing token expiration and renewal seamlessly.

Homepage

License

unknown (license)

Dependencies

dio, equatable, flutter, flutter_bloc, flutter_secure_storage, flutter_web_plugins, http, json_annotation, plugin_platform_interface, web

More

Packages that depend on jwt_auth

Packages that implement jwt_auth