This commit is contained in:
2025-09-17 22:41:25 -03:00
parent 0e6a503ee4
commit b4c7e191fe
2 changed files with 10 additions and 10 deletions

View File

@@ -30,12 +30,6 @@ export async function loader({ request, context }: Route.LoaderArgs) {
redirect: 'manual'
})
console.log('Issuer response', {
json: await r.json(),
headers: r.headers,
status: r.status
})
if (r.status === httpStatus.FOUND) {
return new Response(await r.text(), {
status: r.status,
@@ -43,6 +37,12 @@ export async function loader({ request, context }: Route.LoaderArgs) {
})
}
console.log('Issuer response', {
json: await r.json(),
headers: r.headers,
status: r.status
})
// Deny authorization if user lacks scopes requested by client
if (r.status === httpStatus.FORBIDDEN) {
return new Response(null, {