add fallback to id

This commit is contained in:
2025-12-03 13:31:28 -03:00
parent af45be7083
commit 1b4cbbce6c
8 changed files with 112 additions and 33 deletions

View File

@@ -20,6 +20,10 @@ export async function loader({ request, context }: Route.LoaderArgs) {
})
}
if (!url.searchParams.has('client_id')) {
throw redirect('https://scorm.eduseg.workers.dev/')
}
const r = await fetch(issuerUrl.toString(), {
method: 'GET',
headers: new Headers([