feat: email-first login with allow-check and access forward
This commit is contained in:
parent
82f7ff8b02
commit
b533549e45
8 changed files with 224 additions and 21 deletions
|
|
@ -193,6 +193,11 @@ export const api = {
|
|||
method: "POST",
|
||||
body: JSON.stringify({ token }),
|
||||
}),
|
||||
requestMagicLink: (email: string) =>
|
||||
req<{ message: string; email_sent: boolean }>("/api/auth/magic/request", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ email }),
|
||||
}),
|
||||
logout: () =>
|
||||
req<{ message: string }>("/api/auth/logout", { method: "POST" }),
|
||||
requestAccess: (name: string, email: string, reason: string) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue