new LoginTicket(env, pay)
Create a simple class to extract user ID from an ID Token
Parameters:
Name | Type | Description |
---|---|---|
env |
string |
Envelope of the jwt |
pay |
TokenPayload |
Payload of the jwt |
Methods
getAttributes()
Returns attributes from the login ticket. This can contain various information about the user session.
Returns:
Type | Description |
---|---|
The envelope and payload |
getUserId()
Create a simple class to extract user ID from an ID Token
Returns:
Type | Description |
---|---|
The user ID |