webapp/src/stores/auth.ts

9 lines
312 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
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 }>()