mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Fix login secure token creation.
This commit is contained in:
parent
3efd2a5b10
commit
9172098fa7
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ export default async (
|
|||
|
||||
await redis.set(key, user);
|
||||
|
||||
const token = createSecureToken(key, secret());
|
||||
const token = createSecureToken({ key }, secret());
|
||||
|
||||
return ok(res, { token, user });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue