Stream setup (#46)

* set up stream

* clean up
This commit is contained in:
Kurt Hutten
2023-03-06 20:13:34 +11:00
committed by GitHub
parent 176d2d6394
commit a0518c556f
3 changed files with 140 additions and 45 deletions

View File

@ -4,7 +4,7 @@ import withBaseUrl from './lib/withBaseURL'
import App from './App'
export const Auth = () => {
const { data: user, error } = useSWR(withBaseUrl('/user'), fetcher) as any
const { data: user } = useSWR(withBaseUrl('/user'), fetcher) as any
const isLocalHost =
typeof window !== 'undefined' && window.location.hostname === 'localhost'