remoname types
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { parse } from 'cookie'
|
||||
import type { Route } from './+types'
|
||||
|
||||
import * as httpStatus from '@/lib/http-status'
|
||||
import type { Route } from './+types/authorize'
|
||||
import { parse } from 'cookie'
|
||||
|
||||
export async function loader({ request, context }: Route.LoaderArgs) {
|
||||
const cookies = parse(request.headers.get('Cookie') || '')
|
||||
@@ -31,7 +31,6 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
||||
})
|
||||
|
||||
if (r.status === httpStatus.BAD_REQUEST) {
|
||||
console.log(r)
|
||||
return new Response(null, {
|
||||
status: httpStatus.FOUND,
|
||||
headers: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Route } from './+types/index'
|
||||
import type { Route } from './+types'
|
||||
|
||||
import { isValidCPF } from '@brazilian-utils/brazilian-utils'
|
||||
import { zodResolver } from '@hookform/resolvers/zod'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Route } from './+types/token'
|
||||
import type { Route } from './+types'
|
||||
|
||||
export async function action({ request, context }: Route.ActionArgs) {
|
||||
const issuerUrl = new URL('/token', context.cloudflare.env.ISSUER_URL)
|
||||
|
||||
Reference in New Issue
Block a user