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.
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:
| Page | Description |
|---|---|
| getSubject | Learn how to get the identified user ID. |
| isAnonymous | Learn how to check whether the token is anonymous. |
| getTokenId | Learn how to get the unique token ID. |
| getIssueTime | Learn how to get the time the token was issued. |
| getExpirationTime | Learn how to get the time the token expires. |
| isValidNow | Learn how to check whether the token is currently valid. |
| toString | Learn how to serialize the token to a string. |