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 fetch from 'cross-fetch' | |
import jwtDecode from 'jwt-decode' | |
import moment from 'moment' | |
import { NextPageContext } from 'next' | |
import { destroyCookie, parseCookies, setCookie } from 'nookies' | |
export class AuthClient { | |
baseUrl = 'https://backend-[whatev].nhost.app' | |
stateChangeCallbacks: (() => void)[] = [] | |
context?: NextPageContext |
OlderNewer