Skip to content

Instantly share code, notes, and snippets.

View Itrulia's full-sized avatar

Itrulia Itrulia

  • We.Publish
  • Zuerich, Switzerland
View GitHub Profile
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>>]
Itrulia / SmashingConf Oxford 2016
Last active July 17, 2016 20:15
SmashingConf Oxford 2016 Talks