JWT.decode constructor

JWT.decode(
  1. String token
)

Decodes a JSON Web Token string.

Implementation

JWT.decode(this.token)
    : assert(token.split('.').length == 3, 'Invalid token.');