The Date when the token will expire
The date when the Token was issued
The token will be valid only after this date
The Username from the current Token payload
The current Token full Payload
Indicates if the Token is valid based on it's ExpirationTime and NotBefore values.
Returns the Token in string format (in a base64 encoded, dot separated header and payload)
Factory method for creating empty (invalid) tokens
const invalidToken = Token.CreateEmpty();
Factory method to create a token from a sense NET specific base64 encoded header and payload string, e.g.:
const myToken = Token.FromHeadAndPayload("e30=.eyJhdWQiOiIiLCJleHAiOjE0OTQ1NzkwOTUuMTIsImlhdCI6MCwiaXNzIjoiIiwibmFtZSI6IiIsIm5iZiI6MSwic3ViIjoiIn0=");
Generated using TypeDoc
This class represents a sense NET JWT Token instance.