From 36544d519576edeed9b8e56a023b4ca33ee3396b Mon Sep 17 00:00:00 2001 From: frederikprijck Date: Wed, 31 Aug 2022 22:29:11 +0200 Subject: [PATCH] Fix v2.html --- static/v2.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/static/v2.html b/static/v2.html index d10590734..f45aabd92 100644 --- a/static/v2.html +++ b/static/v2.html @@ -119,10 +119,13 @@

Auth0 SPA JS v1 Migration Playground

var clientOptions = { domain: defaultDomain, clientId: defaultClientId, - audience: defaultAudience, + authorizationParams: { + audience: defaultAudience, + redirect_uri: window.location.origin + '/v2.html' + }, cacheLocation: 'localstorage', useRefreshTokens: true, - redirect_uri: window.location.origin + '/v2.html' + useRefreshTokensFallback: true }; var app = new Vue({ @@ -171,8 +174,10 @@

Auth0 SPA JS v1 Migration Playground

getToken: async function () { await this.auth0.getTokenSilently({ - foo: this.foo, - ...(this.getTokenScope ? { scope: this.getTokenScope } : {}), + authorizationParams: { + foo: this.foo, + ...(this.getTokenScope ? { scope: this.getTokenScope } : {}) + }, cacheMode: 'off' }); this.isAuthenticated = await this.auth0.isAuthenticated();