how can I get id_token(JWT) with Auth0 and mode SSR

retasretas
0
retasretas
commented 7 days ago

I can't get id_token even though set the token_key: 'id_token' as described below.

I can get only "auth.strategy" and "auth.token.auth0"(accesstoken).

// nuxt.config.js

mode: 'universal',
modules: [
    '@nuxtjs/axios',
    '@nuxtjs/auth'
  ],
// ...
auth: {
    redirect: {
      callback: '/callback'
    },
    strategies: {
      auth0: {
        client_id: process.env.auth0ClientID,
        domain: process.env.auth0Domain,
        scope: ['openid', 'profile', 'email'],
        token_key: 'id_token' // <===== not working
      },
    },
  },
0
Informations
Question โ€ข Unresolved
#c242 - Created 7 days ago