All files / src/helpers utils.ts

100% Statements 6/6
100% Branches 8/8
100% Functions 3/3
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 47x 10x 4x  
export const isAnonymousSession = (token) => token && token.scope && token.scope.includes('anonymous_id');
export const isUserSession = (token) => token && token.scope && token.scope.includes('customer_id');
export const getAccessToken = (token) => token ? token.access_token : null;