Custom name for the auth cookie #1787
Answered
by
harrisonratcliffe
harrisonratcliffe
asked this question in
Support Requests
-
Hello, NuxtJS Auth using Laravel Sanctum creates the auth._token.laravelSanctum and auth._token_expiration.laravelSanctum cookies. Is it possible to set the name for this or at least hide laravelSanctum from the cookie? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
harrisonratcliffe
Sep 26, 2022
Replies: 1 comment
-
Found the solution by checking through the source code. For anyone wanting to know how you need to set
Keep in mind, you'll need to update the provider name for things such as
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
harrisonratcliffe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the solution by checking through the source code.
For anyone wanting to know how you need to set
name
in nuxt.config.js:Keep in mind, you'll need to update the provider name for things such as
loginWith()
andlogout()
: