Press n or j to go to the next uncovered block, b, p or k for the previous block.
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 2x 2x 2x 2x | export const ADD_REFRESH_TOKEN = "ADD_REFRESH_TOKEN"; export const ADD_ACCESS_TOKEN = "ADD_ACCESS_TOKEN"; export const CHECKED_COOKIES = "CHECKED_COOKIES"; export const REMOVE_TOKENS = "REMOVE_TOKENS"; export interface AccessToken { token: string | null; timestamp: number | null; } export enum CookieStatus { NOT_STARTED, LOADING, FINISHED } export interface TokensState { refreshToken: string | null; accessToken: AccessToken | null; checkedCookies: number; } export interface AddRefreshToken { type: typeof ADD_REFRESH_TOKEN; payload: string; } export interface AddAccessToken { type: typeof ADD_ACCESS_TOKEN; payload: AccessToken; } export interface RemoveTokens { type: typeof REMOVE_TOKENS; } export interface CheckedCookies { type: typeof CHECKED_COOKIES; payload: CookieStatus; } export type TokenActionsTypes = | AddRefreshToken | AddAccessToken | RemoveTokens | CheckedCookies; |