Skip to content

Commit

Permalink
fix: update sanctum endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
hkp22 committed Oct 28, 2024
1 parent e2f55da commit 187fd3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ export default defineNuxtConfig({
apiUrl: 'http://localhost:8000',
authMode: 'cookie',
userStateKey: 'sanctum.authenticated.user',
userResponseWrapperKey: 'data',

token: {
storageKey: 'AUTH_TOKEN',
provider: 'cookie',
// responseKey: 'data.token',
responseKey: 'token',
},
fetchClientOptions: {
retryAttempts: false,
Expand All @@ -24,9 +28,9 @@ export default defineNuxtConfig({
sanctumEndpoints: {
csrf: '/sanctum/csrf-cookie',
login: '/login',
// login: '/api/sanctum/token',
// login: '/api/tokens/create',
logout: '/logout',
// logout: '/api/sanctum/token/delete',
// logout: '/api/tokens/delete',
user: '/api/user',
},
redirect: {
Expand Down

0 comments on commit 187fd3f

Please sign in to comment.