jwt_decode 0.0.1 jwt_decode: ^0.0.1 copied to clipboard
A Dart package to decode jsonwebtokens
jwt_decode #
A easy library to decode Jsonwebtokens with a single function call.
Using #
The easiest way to use this library is via the top-level function parseJwt()
.
import 'package:jwt_decode/jwt_decode.dart';
var token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';
var payload = Jwt.parseJwt(token);
print(payload);