add fallback to id
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user