From 50376a056f620544a2288d61e1315c0b0c684ed0 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Fri, 4 Dec 2026 16:37:32 +0100 Subject: [PATCH] Redirect to the page the UI has for an adopted device (#99) The sign-in callback sent a user who adopts a device that another account owns to /already-adopted. The UI serves that page at /devices/already-adopted, so the user got the not-found page. --- src/oidc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oidc.ts b/src/oidc.ts index 7908e76..2879889 100644 --- a/src/oidc.ts +++ b/src/oidc.ts @@ -136,7 +136,7 @@ export const Callback = async (req: express.Request, res: express.Response) => { // // This check prevents unauthorized adoption and ensures proper ownership transfer. // The cost of this check is therefore, that the previous owner has to re-register the device. - return res.redirect(`${APP_HOSTNAME}/already-adopted`); + return res.redirect(`${APP_HOSTNAME}/devices/already-adopted`); } // Temp Token expires in 5 minutes