Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cookie not working on subdomains #1839

Open
1 of 2 tasks
lfgtavora opened this issue Mar 21, 2023 · 0 comments
Open
1 of 2 tasks

cookie not working on subdomains #1839

lfgtavora opened this issue Mar 21, 2023 · 0 comments
Labels

Comments

@lfgtavora
Copy link

Version

module: 5.0.0-1667386184.dfbbb54
nuxt: 2.15.3

Nuxt configuration

mode:

  • universal
  • spa

Nuxt configuration

  auth: {
    strategies: {
      cookie: {
        options: {
          domain:  '.ofertalia.com.br',
          secure: process.env.NODE_ENV === 'production'
        },
        token: {
          property: 'data.accessTokenCookie',
          required: true,
          type: ''
        },
        user: {
          property: ''
        },
        endpoints: {
          login: {
            url: 'google-authentication',
            method: 'post'
          },
          logout: {
            url: 'auth/logout',
            method: 'get'
          },
          user: {
            url: 'users',
            method: 'get',
            withCredentials: true
          }
        }
      }
    }
  },

What is expected?

set cookies to all subdomains

What is actually happening?

its not respecting my cookie domain configuration

image

am i forgeting something??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant