All files / sn-client-js/src/Authentication TokenStoreType.ts

100% Statements 6/6
100% Branches 2/2
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33              1x         1x         1x         1x         1x       1x  
/**
 * @module Authentication
 */ /** */
 
 /**
  * This enum represents how the token will be stored on the client-side.
  */
export enum TokenStoreType {
    
    /**
     * The is stored in a cookie, without expiration date (Session Cookie).
     */
    SessionCookie,
    
    /**
     * The token is stored in a cookie, the expiration dates will match the token expiration dates
     */
    ExpirationCookie,
    
    /**
     * The token is stored in the local sessionStorage
     */
    SessionStorage,
    
    /**
     * The token is stored in the localStorage
     */
    LocalStorage,
    /**
     *  The token is stored in an in-memory storage (fallback)
     */
    InMemory
}