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 Vue from "vue"; | |
import createAuth0Client from "@auth0/auth0-spa-js"; | |
/** Define a default action to perform after authentication */ | |
const DEFAULT_REDIRECT_CALLBACK = () => | |
window.history.replaceState({}, document.title, window.location.pathname); | |
let instance; | |
/** Returns the current instance of the SDK */ | |
export const getInstance = () => instance; | |
/** Creates an instance of the Auth0 SDK. If one has already been created, it returns that instance */ | |
export const useAuth0 = ({ |