add forgot login

This commit is contained in:
2025-12-05 10:23:22 -03:00
parent b929c492c0
commit 7c3239d856
14 changed files with 270 additions and 57 deletions

View File

@@ -47,14 +47,11 @@ export function meta({}: Route.MetaArgs) {
}
export async function action({ request, context }: Route.ActionArgs) {
const issuerUrl = new URL(
'/authentication',
context.cloudflare.env.ISSUER_URL
)
const url = new URL('/authentication', context.cloudflare.env.ISSUER_URL)
const formData = Object.fromEntries(await request.formData())
try {
const r = await fetch(issuerUrl.toString(), {
const r = await fetch(url.toString(), {
method: 'POST',
headers: new Headers({ 'Content-Type': 'application/json' }),
body: JSON.stringify(formData)