Open hackerwins opened 2 years ago
Description:
Store auth token in a cookie.
We implemented the login in https://github.com/yorkie-team/yorkie-house/pull/31 but we store the auth token in localStorage.
Since localStorage can be referenced by JavaScript, storing the token in a cookie is recommended.
Let's store the auth token in a cookie.
Why:
There are additional considerations in this issue.
The current Dashboard network structure is as follows. (ref: https://github.com/yorkie-team/dashboard#how-dashboard-works)
httpOnly
secure
Description:
Store auth token in a cookie.
We implemented the login in https://github.com/yorkie-team/yorkie-house/pull/31 but we store the auth token in localStorage.
Since localStorage can be referenced by JavaScript, storing the token in a cookie is recommended.
Let's store the auth token in a cookie.
Why: