edu/app/src/utils/auth.ts

7 lines
139 B
TypeScript

import { TOKEN_KEY } from '@/enums/cacheEnums'
import cache from './cache'
export function getToken() {
return cache.get(TOKEN_KEY)
}