Display text on mobile token endpoint

This commit is contained in:
Regalijan 2023-10-26 15:22:05 -04:00
parent de1bb2bdb3
commit f218390d60
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -107,7 +107,17 @@ export async function onRequestGet(context: RequestContext) {
.replaceAll("/", "_") .replaceAll("/", "_")
.replaceAll("=", ""); .replaceAll("=", "");
return Response.redirect( return new Response(`<!DOCTYPE html>
`com.carcrushers.app://login-callback?token=${header}.${claimSet}.${encodedSignature}`, <html>
); <body>
<p>You were logged in successfully. If this page does not close in a few seconds, please click done.</p>
</body>
</html>
`, {
headers: {
"content-type": "text/html",
location: `com.carcrushers.app://login-callback?token=${header}.${claimSet}.${encodedSignature}`
},
status: 302,
});
} }