Home > @poq/sdk-sfcc > TokenInfo
Model carries token information and methods for encoding and decoding tokens.
Signature:
export declare class TokenInfo
Constructor | Modifiers | Description |
---|---|---|
(constructor)(token, customerId, isGuest) | Constructs a new instance of the TokenInfo class |
Property | Modifiers | Type | Description |
---|---|---|---|
customerId | string | ||
isGuest | boolean | null | ||
token | string |
Method | Modifiers | Description |
---|---|---|
decode(encodedToken) | static |
Method decodes token info from base65 string. |
encode() | Methd converts json representation of token info into base 64 format. |