fix(native): a passkey sign-in from the app asks for the passkey straight away in the browser and returns to the app, instead of showing the whole login a second time

This commit is contained in:
Maurice
2026-11-08 17:50:50 +01:00
parent 4ba7db90e6
commit 36c8c5bc48
6 changed files with 139 additions and 17 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ import { APP_URL_SCHEME, TrekShell } from './trekShell';
export const HANDOFF_PATH = '/native-handoff';
export type BrowserSignInStart = 'oidc';
/** Where the browser starts: straight into SSO, or straight at the passkey prompt. */
export type BrowserSignInStart = 'oidc' | 'passkey';
const HANDOFF_RETURN_KEY = 'trek_native_handoff_return';
const HANDOFF_RETURN_TTL_MS = 15 * 60 * 1000;