Remove pwd and jwt (server only)

Closes #9
This commit is contained in:
2024-05-14 14:38:30 +02:00
parent 968292713f
commit 605cab4c85
5 changed files with 1 additions and 54 deletions
-8
View File
@@ -1,8 +0,0 @@
export type JWT = `${string}.${string}.${string}`
export function create() : JWT {
throw "todo"
}
export function verify() : boolean {
throw "todo"
}
-7
View File
@@ -1,7 +0,0 @@
export function hash(pwd: string) : Promise<string> {
return Bun.password.hash(pwd)
}
export async function verify(pwd: string, hash: string) : Promise<boolean> {
return Bun.password.verify(pwd, hash).catch(() => false)
}