diff options
| author | Adam Soltys <[email protected]> | 2024-11-26 13:08:08 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-26 13:20:53 -0800 |
| commit | 9b3e117eafbba224b86dd7f8b3c56a0370f72d5b (patch) | |
| tree | a670c3ae954d5075c851126c2aca7a1a45d1b41d /src/lib/utils.ts | |
| parent | 2761363d694d3f24600abbe656769f64d7a67605 (diff) | |
| download | coinos-ui-9b3e117eafbba224b86dd7f8b3c56a0370f72d5b.tar.gz coinos-ui-9b3e117eafbba224b86dd7f8b3c56a0370f72d5b.zip | |
bip21 and socket fixes
Diffstat (limited to 'src/lib/utils.ts')
| -rw-r--r-- | src/lib/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts index a15bb8e7..dc7182e3 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -151,7 +151,7 @@ export const info = (m: string) => { export const login = async ( user: { username: string; password: string }, - cookies: any, + cookies, ip: string, ) => { const maxAge = 380 * 24 * 60 * 60; @@ -182,7 +182,7 @@ export const login = async ( cookies.set("token", token, opts); }; -export const auth = (cookies: any) => ({ +export const auth = (cookies) => ({ authorization: `Bearer ${cookies.get("token")}`, }); |
