mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
feat(claim): offer the identity provider on the claim page and name the way in to guardians
The claim page shows the password form, a continue-with-provider button, or both, as the preview names them, and explains a refused single-sign-on claim when the callback sends the browser back. The guardian's handover panel says how the person will sign in.
This commit is contained in:
1 parent
3fd6bd6081
commit
0ebb61343e
13 files changed
+469
-85
No files matched your search
@@ -6,7 +6,9 @@ import { ClaimProfile } from "@/components/auth/claim-profile";
|
||||
|
||||
/**
|
||||
* v1.42 (#959) — `/auth/claim?token=hlp_…`, where the link a Guardian handed
|
||||
* over (`/claim/<token>`) lands after the edge redirect.
|
||||
* over (`/claim/<token>`) lands after the edge redirect. Since v1.43 also
|
||||
* `/auth/claim?error=<reason>`, where a refused single-sign-on claim returns;
|
||||
* the reason is a fixed word, never a credential.
|
||||
*
|
||||
* A URL-credential surface by shape (`session-surface-guard.test.ts`, S2): the
|
||||
* page reads the one-time token off the query string and passes it to the
|
||||
@@ -16,5 +18,10 @@ import { ClaimProfile } from "@/components/auth/claim-profile";
|
||||
*/
|
||||
export default function ClaimProfilePage() {
|
||||
const searchParams = useSearchParams();
|
||||
return <ClaimProfile token={searchParams.get("token")} />;
|
||||
return (
|
||||
<ClaimProfile
|
||||
token={searchParams.get("token")}
|
||||
error={searchParams.get("error")}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user