completionId: cgen-b67fee4f05f24719b1b2b181c102bd40
cgen-b67fee4f05f24719b1b2b181c102bd40
This commit is contained in:
parent
9f5567eda7
commit
91403037b9
1 changed files with 1 additions and 2 deletions
|
|
@ -958,8 +958,7 @@ export function createServer() {
|
|||
return res.status(401).json({ error: "Invalid auth token" });
|
||||
}
|
||||
|
||||
const crypto = require("crypto");
|
||||
const sessionToken = crypto.randomBytes(32).toString("hex");
|
||||
const sessionToken = randomBytes(32).toString("hex");
|
||||
const expiresAt = new Date(Date.now() + 5 * 60 * 1000).toISOString();
|
||||
|
||||
const { error: insertError } = await adminSupabase
|
||||
|
|
|
|||
Loading…
Reference in a new issue