chore: switch to apollo-composable

This commit is contained in:
2020-06-21 17:59:14 +02:00
parent 5aeb510231
commit 84843cc3ed
10 changed files with 3033 additions and 2446 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ let instance
const params = new URL(window.location).searchParams
const domain = params.get('domain') || 'unbound.eu.auth0.com'
export default (onRedirectCallback = DEFAULT_REDIRECT_CALLBACK) => {
export const useAuth = (onRedirectCallback = DEFAULT_REDIRECT_CALLBACK) => {
if (instance) {
return toRefs(instance)
}