Token

Learn how to read the visitor's user token.

This class represents the visitor’s user token, returned by getUserToken. It is a JSON Web Token (JWT) that identifies the visitor, and stays anonymous until you identify them.

Croct's mascot winking
Looking for something specific?

Use the search bar at the top of the page or press / to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

PageDescription
getSubjectLearn how to get the identified user ID.
isAnonymousLearn how to check whether the token is anonymous.
getTokenIdLearn how to get the unique token ID.
getIssueTimeLearn how to get the time the token was issued.
getExpirationTimeLearn how to get the time the token expires.
isValidNowLearn how to check whether the token is currently valid.
toStringLearn how to serialize the token to a string.