how refresh token jwt nuxt auth

Solutions on MaxInterview for how refresh token jwt nuxt auth by the best coders in the world

showing results for - "how refresh token jwt nuxt auth"
Giulio
04 Jan 2017
1auth: {
2    localStorage: false,
3    strategies: {
4      local: {
5        scheme: 'refresh', // `_scheme` is now `scheme` 
6        token: {
7          property: 'access',
8          type: 'Bearer', // `tokenType` is now `token.type`
9          required: true // `tokenRequired` is now `token.required`
10        },
11        refreshToken: {
12          property: 'refresh_token' // change to your refresh token property
13        },
14        user: {
15          property: false,  // `user` property is now `user.property`
16          autoFetch: true
17        },
18        endpoints: {
19          login: { url: '/api/v1/auth/jwt/create/', method: 'post' },
20          refresh: { url: '/api/v1/auth/jwt/refresh/', method: 'post' },  // change to your refresh token url
21          user: { url: '/api/v1/auth/users/me/', method: 'get' },
22          logout: false
23        }
24      }
25    }
26  }