Please visit the smashingconf website now: http://smashingconf.com/oxford-2016/?mc_cid=08c447d523&mc_eid=0a6b069c85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {UserSession, User} from '@wepublish/website/api' | |
import {useRouter} from 'next/router' | |
import {createContext, Dispatch, SetStateAction, useContext} from 'react' | |
export const AuthTokenStorageKey = 'auth.token' | |
export const SessionTokenContext = createContext< | |
[User | null, Dispatch<SetStateAction<UserSession | null>>] | |
>(null!) |