update cf context on id
This commit is contained in:
@@ -8,6 +8,7 @@ import { useForm } from 'react-hook-form'
|
||||
import { Link, useFetcher } from 'react-router'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { cloudflareContext } from '@repo/auth/context'
|
||||
import logo from '@repo/ui/components/logo2.svg'
|
||||
import { Button } from '@repo/ui/components/ui/button'
|
||||
import { Checkbox } from '@repo/ui/components/ui/checkbox'
|
||||
@@ -47,7 +48,8 @@ export function meta({}: Route.MetaArgs) {
|
||||
}
|
||||
|
||||
export async function action({ request, context }: Route.ActionArgs) {
|
||||
const url = new URL('/authentication', context.cloudflare.env.ISSUER_URL)
|
||||
const cloudflare = context.get(cloudflareContext)
|
||||
const url = new URL('/authentication', cloudflare.env.ISSUER_URL)
|
||||
const formData = Object.fromEntries(await request.formData())
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user