* Proof of concept ComponentState * Migrate to createState and createFamilyState * Refactor * Fix * Fix tests * Fix lint * Fix tests * Re-enable coverage
10 lines
350 B
TypeScript
10 lines
350 B
TypeScript
import { createState } from '@/ui/utilities/state/utils/createState';
|
|
import { AuthTokenPair } from '~/generated/graphql';
|
|
import { cookieStorageEffect } from '~/utils/recoil-effects';
|
|
|
|
export const tokenPairState = createState<AuthTokenPair | null>({
|
|
key: 'tokenPairState',
|
|
defaultValue: null,
|
|
effects: [cookieStorageEffect('tokenPair')],
|
|
});
|