-
Notifications
You must be signed in to change notification settings - Fork 205
Open
Description
Version
Reproduction link
https://codesandbox.io/s/nuxt-apollo-module-token-name-bug-ym7pn
Steps to reproduce
- Create a Nuxt project;
- Install the module;
- Configure 2 different clients;
- Use a custom
tokenName
valueper-client
.
What is expected ?
It should create differents cookies per-clients.
What is actually happening?
Create only one cookie used by all the clients, with the name 'apollo-token'.
Additional comments?
The version i'm using is the 4.0.1-rc.5
, but it's not present in the list.
From the generated file .nuxt/apollo-module.js
:
const AUTH_TOKEN_NAME = 'apollo-token';
const defaultTokenName = '' || AUTH_TOKEN_NAME;
const authTokenName = '' || AUTH_TOKEN_NAME;
cookies.set( AUTH_TOKEN_NAME, token, cookieAttributes );
cookies.remove( AUTH_TOKEN_NAME, cookieAttributes );
Every cookie / name
is based on the default value and not from the provided tokenName
per-client.
sgarner, wallslide, slavanossar and inaschmitz
Metadata
Metadata
Assignees
Labels
No labels