Access_token too short ~ jwt malformed

Thanks priya!

I had the same issue as @uxgent.

In the auth0.js example (line 276 of example/index.js), I added the following to the instantiation of webAuth:

    webAuth = new auth0.WebAuth({
      audience: 'http://localhost:5000',   // <------------------- ADD
      domain: domain,
      redirectUri: REDIRECT_URL,
      clientID: clientId,
      responseType: 'token id_token',
      plugins: [
        new CordovaAuth0Plugin()
      ]
  });

I now receive a JWT access token.

1 Like