jwt_auth 0.0.1 jwt_auth: ^0.0.1 copied to clipboard
A plugin for JWT authentication
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.1
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_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';