update cf context on id
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
||||
} from '@repo/ui/components/ui/form'
|
||||
import { Label } from '@repo/ui/components/ui/label'
|
||||
import { Spinner } from '@repo/ui/components/ui/spinner'
|
||||
import { request as req } from '@repo/util/request'
|
||||
import { cloudflareContext } from '@repo/auth/context'
|
||||
import {
|
||||
Alert,
|
||||
AlertDescription,
|
||||
@@ -50,8 +50,8 @@ export function meta({}: Route.MetaArgs) {
|
||||
}
|
||||
|
||||
export async function action({ params, request, context }: Route.ActionArgs) {
|
||||
const { token } = params
|
||||
const url = new URL(`/reset/${token}`, context.cloudflare.env.ISSUER_URL)
|
||||
const cloudflare = context.get(cloudflareContext)
|
||||
const url = new URL(`/reset/${params.token}`, cloudflare.env.ISSUER_URL)
|
||||
const body = await request.json()
|
||||
|
||||
const r = await fetch(url.toString(), {
|
||||
|
||||
Reference in New Issue
Block a user