webapp/src/stores/auth.ts
2022-09-09 14:53:35 +03:00

9 lines
312 B
TypeScript

import { atom, action } from 'nanostores'
import type { AuthResult } from '../graphql/types.gen'
import { getLogger } from '../utils/logger'
import { resetToken, setToken } from '../graphql/privateGraphQLClient'
const log = getLogger('auth-store')
export const session = atom<AuthResult & { email: string }>()