This commit is contained in:
FantasyPvP
2024-12-02 17:39:27 +00:00
parent 0ae26d46bf
commit 1707309d95
17 changed files with 60 additions and 27 deletions
+12
View File
@@ -0,0 +1,12 @@
DEFINE FUNCTION auth::sessiontoken::new($user: uuid) {
LET $token = rand::string(64);
CREATE SessionToken CONTENT {
id: rand::uuid::v4(),
created: time::now(),
expires: time::now() + 7d,
token: $token,
user: Entity:user,
};
}