As a Application developer we are mostly interested in decoding the Payload to get User Details like mail-id, session time etc. So we start by splitting the JWT in 3 parts. Now, Decode Base64 encoded string to get Payload JSON. Above function will return Json string with Payload.
Read moreWhat is JWT token in flutter?
JWT Decoder This is a small library for decoding a json web token for dart / flutter . Since the header and payload is base64 encoded you can easily know the stored data with no password, you can also know if the token is expired or not.
Read moreWhat is a JWT used for?
JWT, or JSON Web Token, is an open standard used to share security information between two parties — a client and a server . Each JWT contains encoded JSON objects, including a set of claims. JWTs are signed using a cryptographic algorithm to ensure that the claims cannot be altered after the token is issued.
Read more