mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 11:36:25 +08:00
248cd9a8ab
Co-authored-by: Whitewater <me@waterwater.moe>
9 lines
221 B
TypeScript
9 lines
221 B
TypeScript
import { atomWithStorage } from 'jotai/utils';
|
|
|
|
import type { AccessTokenMessage } from '../affine/login';
|
|
|
|
export const currentAffineUserAtom = atomWithStorage<AccessTokenMessage | null>(
|
|
'affine-user-atom',
|
|
null
|
|
);
|