feat: add credentials authentication (#1)
This commit is contained in:
1 parent
41e54d940b
commit
3cedb7fba5
53 files changed
+890
-2105
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { randomUUID } from "crypto";
|
||||
|
||||
export const expireDateAfter = (seconds: number) => {
|
||||
return new Date(Date.now() + seconds * 1000);
|
||||
};
|
||||
|
||||
export const generateSessionToken = () => {
|
||||
return randomUUID();
|
||||
};
|
||||
Reference in new issue
Block a user