Closed TheSpecialist1 closed 1 year ago
Hi @TheSpecialist1 for now it's not possible to change the token cookie name. It should be easy to implement tho, gimme few days and I'll look into it.
Thank you.
On Sun, Apr 16, 2023 at 1:26 PM Paul Cross @.***> wrote:
Hi @TheSpecialist1 https://github.com/TheSpecialist1 for now it's not possible to change the token cookie name. It should be easy to implement tho, gimme few days and I'll look into it.
— Reply to this email directly, view it on GitHub https://github.com/dystcz/nuxt-sanctum-auth/issues/14#issuecomment-1510437498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCCPGRASWKSIMXI7YSFAJLXBQTUFANCNFSM6AAAAAAW73YTGE . You are receiving this because you were mentioned.Message ID: @.***>
-> v0.4.4 Just add this to your config and it should work.
export default defineNuxtConfig({
// ...
nuxtSanctumAuth: {
csrf: {
tokenCookieKey: 'nuxt-sanctum-auth-token'
},
}
})
Please close this issue if everything is ok. Thanks
Great! thanks. I'm going to use your package in production and will let you know if I find something else.
Awesome, closing this issue, if you find any other problems, please do create new separate issues. Thanks
is there any way to change the cookie name? by default it set to "nuxt-sanctum-auth-token".