search

Home  >  Q&A  >  body text

Change nuxt js Auth cookies name

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粉216203545P粉216203545359 days ago405

reply all(1)I'll reply

  • P粉401901266

    P粉4019012662024-03-28 16:51:52

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

    auth: {
      strategies: {
        local: {
          token: {
            property: 'my_cool_token',
          },
        },
      },
    },
    

    reply
    0
  • Cancelreply