add revoke
This commit is contained in:
@@ -30,15 +30,6 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
||||
redirect: 'manual'
|
||||
})
|
||||
|
||||
// if (r.status === httpStatus.BAD_REQUEST) {
|
||||
// return new Response(null, {
|
||||
// status: httpStatus.FOUND,
|
||||
// headers: {
|
||||
// Location: redirect.toString()
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
if (r.status === httpStatus.FOUND) {
|
||||
return new Response(await r.text(), {
|
||||
status: r.status,
|
||||
@@ -46,9 +37,17 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
||||
})
|
||||
}
|
||||
|
||||
return Response.json(await r.json(), {
|
||||
status: r.status,
|
||||
headers: r.headers
|
||||
console.log('Issuer response', {
|
||||
json: await r.json(),
|
||||
headers: r.headers,
|
||||
status: r.status
|
||||
})
|
||||
|
||||
return new Response(null, {
|
||||
status: httpStatus.FOUND,
|
||||
headers: {
|
||||
Location: redirect.toString()
|
||||
}
|
||||
})
|
||||
} catch {
|
||||
return new Response(null, { status: httpStatus.INTERNAL_SERVER })
|
||||
|
||||
Reference in New Issue
Block a user