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("/", "_")
|
||||||
.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,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user