getTokenSilently() returns a 32 character string, not JWT

EDIT: Never mind - I had to restart npm serve to relaunch the application so that my initialization process worked correctly. I’m good now. Thanks for the help.

This is my plugin activation:

Vue.use(Auth0Plugin, {
    domain, // my Auth0 domain name <xxx>.auth0.com
    clientId, // my ClientID from my dashboard
    audience, // the API identifier from my dashboard
    onRedirectCallback: appState => {
        router.push(
            appState && appState.targetUrl ?
            appstate.targetUrl : 
            window.location.pathname
        )
}}

I’m using the following as my login function:

this.$auth.loginWithRedirect({
    redirect_uri: <my redirect URL>,
    audience: <the API identifier from my dashboard>
})

It wasn’t working without the “audience” parameter on the loginWithRedirect() call, so I added that. Made no difference.

1 Like