diff options
| author | Adam Soltys <[email protected]> | 2022-11-10 16:38:45 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-10 16:38:50 -0800 |
| commit | 3b7446a285ec4010f873dd231c3a4acb525b969e (patch) | |
| tree | c028e7c137eb62de82890882773d8a48e53bceee /src/lib | |
| parent | d9e3d8d8f552e1338f79d194669db822acb21091 (diff) | |
| download | coinos-ui-3b7446a285ec4010f873dd231c3a4acb525b969e.tar.gz coinos-ui-3b7446a285ec4010f873dd231c3a4acb525b969e.zip | |
username cookie
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/utils.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index 2bf6b800..120df12b 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -124,6 +124,7 @@ export const login = async (user, cookies) => { let expires = new Date(); expires.setSeconds(expires.getSeconds() + maxAge); + cookies.set('username', user.username, { path: '/', expires }); cookies.set('token', token, { path: '/', expires }); }; |
