jwt_auth 0.0.2 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 Flutter:
$ flutter pub add jwt_auth
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
jwt_auth: ^0.0.2
Alternatively, your editor might support 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';