update cf context on id
This commit is contained in:
@@ -8,6 +8,7 @@ import { CheckCircle2Icon } from 'lucide-react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { redirect, useFetcher } from 'react-router'
|
||||
|
||||
import { cloudflareContext } from '@repo/auth/context'
|
||||
import { Button } from '@repo/ui/components/ui/button'
|
||||
import { Checkbox } from '@repo/ui/components/ui/checkbox'
|
||||
import {
|
||||
@@ -35,7 +36,8 @@ export function meta({}: Route.MetaArgs) {
|
||||
}
|
||||
|
||||
export async function action({ request, context }: Route.ActionArgs) {
|
||||
const url = new URL('/register', context.cloudflare.env.ISSUER_URL)
|
||||
const cloudflare = context.get(cloudflareContext)
|
||||
const url = new URL('/register', cloudflare.env.ISSUER_URL)
|
||||
const body = await request.json()
|
||||
|
||||
const r = await fetch(url.toString(), {
|
||||
|
||||
Reference in New Issue
Block a user