zklogin/jwt_decode library

Functions

jwtDecode(String token, {bool header = false}) Map<String, dynamic>
Decode a JWT without verifying its signature. Returns the payload, or the header when header is true.

Exceptions / Errors

InvalidTokenError
Thrown when a JWT cannot be decoded.