Poq.SDK.Node

Home > @poq/sdk-sfcc > TokenInfo

TokenInfo class

Model carries token information and methods for encoding and decoding tokens.

Signature:

export declare class TokenInfo 

Constructors

Constructor Modifiers Description
(constructor)(token, customerId, isGuest)   Constructs a new instance of the TokenInfo class

Properties

Property Modifiers Type Description
customerId   string  
isGuest   boolean | null  
token   string  

Methods

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.