mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +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
@@ -20,6 +20,7 @@
|
||||
* invalidation path (`grantDependentKeys`).
|
||||
*/
|
||||
|
||||
import type { HandoverMethod } from "@/lib/validations/claim-sso";
|
||||
import {
|
||||
useMutation,
|
||||
useQuery,
|
||||
@@ -346,8 +347,13 @@ export function useRemoveManagedProfileGuardian() {
|
||||
|
||||
/** What `GET /api/managed-profiles/{id}/handover` answers. */
|
||||
export interface ManagedProfileHandoverStatus {
|
||||
/** False on a single-sign-on-only instance, where no link can be made. */
|
||||
/** False only when no way to redeem a link exists on this instance. */
|
||||
available: boolean;
|
||||
/**
|
||||
* v1.43 — how the person can redeem the link here. Absent from an older
|
||||
* server, which only offered the password.
|
||||
*/
|
||||
methods?: HandoverMethod[];
|
||||
open: {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
|
||||
Reference in new issue
Block a user