Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix login secure token creation.

Brian Cao9172098fa735
diff --git a/pages/api/auth/login.ts b/pages/api/auth/login.ts
index b7458a7af..e23415a98 100644
--- a/pages/api/auth/login.ts
+++ b/pages/api/auth/login.ts
@@ -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 });
}