Skip to content

Commit

Permalink
Fix v2.html
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Aug 31, 2022
1 parent f42ab75 commit 36544d5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions static/v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,13 @@ <h1 class="mb-5">Auth0 SPA JS v1 Migration Playground</h1>
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({
Expand Down Expand Up @@ -171,8 +174,10 @@ <h1 class="mb-5">Auth0 SPA JS v1 Migration Playground</h1>

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();
Expand Down

0 comments on commit 36544d5

Please sign in to comment.