Closed TristanDuck closed 1 year ago
Please format your config correctly
Editied
the laravel/sanctum provider uses the cookie scheme, there's no token to set as this would be handled by laravel via the XSRF token header. You're probably looking to use the local or oauth2 scheme if you're going to be setting tokens.
Yeah, but tokens can also be used for third party authentication to sanctum (not on the same domain). But for my use case I can probably go without it. Thanks.
Environment
Linux
v16.16.0
3.0.0
1.0.0
npm@9.1.2
vite
runtimeConfig
,css
,vite
,imports
,modules
,proxy
,http
,auth
,build
@vueuse/nuxt@9.6.0
,@nuxtjs-alt/auth@2.1.6
,@nuxtjs-alt/http@1.5.3
,@nuxtjs-alt/proxy@2.1.0
,@nuxtjs/color-mode@3.2.0
,()
,@pinia/nuxt@0.4.5
-
Nuxt Config
Reproduction
Describe the bug
On auth login, trying to manually set the user token results in an undefined error for the token.set() function shown below.
Additional context
No response
Logs
No response