diff --git a/functions/api/auth/mobile/token.ts b/functions/api/auth/mobile/token.ts index c9a1256..027d86d 100644 --- a/functions/api/auth/mobile/token.ts +++ b/functions/api/auth/mobile/token.ts @@ -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(` + + +

You were logged in successfully. If this page does not close in a few seconds, please click done.

+ + +`, { + headers: { + "content-type": "text/html", + location: `com.carcrushers.app://login-callback?token=${header}.${claimSet}.${encodedSignature}` + }, + status: 302, + }); }