You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In first function we setCookie if we reauthenticate user: setCookie(event, 'iam-access-token', 'Bearer ' + tokens.accessToken, { httpOnly: true, secure: true })
, but when we read this cookies in second function: getCookie(event, "iam-access-token") as string;
we got an old value until next request.
I thought that it must be some time between set and get cookies and have added pause-function for 10sec, but problem still there.
Cookie don't want to set until next request.
The text was updated successfully, but these errors were encountered:
Hello.
In file \server\middleware\iam\authentication\index.ts we call 2 functions:
In first function we setCookie if we reauthenticate user:
setCookie(event, 'iam-access-token', 'Bearer ' + tokens.accessToken, { httpOnly: true, secure: true })
, but when we read this cookies in second function:
getCookie(event, "iam-access-token") as string;
we got an old value until next request.
I thought that it must be some time between set and get cookies and have added pause-function for 10sec, but problem still there.
Cookie don't want to set until next request.
The text was updated successfully, but these errors were encountered: