Display text on mobile token endpoint
This commit is contained in:
parent
de1bb2bdb3
commit
f218390d60
@ -107,7 +107,17 @@ export async function onRequestGet(context: RequestContext) {
|
||||
.replaceAll("/", "_")
|
||||
.replaceAll("=", "");
|
||||
|
||||
return Response.redirect(
|
||||
`com.carcrushers.app://login-callback?token=${header}.${claimSet}.${encodedSignature}`,
|
||||
);
|
||||
return new Response(`<!DOCTYPE html>
|
||||
<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,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user