Change nuxt js Auth cookies name
P粉216203545
P粉216203545 2024-03-27 20:05:45
0
1
293

Is there any way to change the Nuxt js auth cookie name?

I know you can change the cookie prefix.

Do I need to extend the current schema and override methods?

P粉216203545
P粉216203545

reply all(1)
P粉401901266

In my opinion, this should work fine
nuxt.config.js

auth: {
  strategies: {
    local: {
      token: {
        property: 'my_cool_token',
      },
    },
  },
},
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!