@passflow/react 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.es.js +102 -104
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/components/flow/consent/index.d.cts +1 -1
  7. package/dist/src/components/flow/consent/index.d.ts +1 -1
  8. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.cts +2 -2
  9. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.ts +2 -2
  10. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.ts.map +1 -1
  11. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -1
  12. package/dist/src/components/provider/passflow-provider.d.cts +22 -1
  13. package/dist/src/components/provider/passflow-provider.d.ts +22 -1
  14. package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
  15. package/dist/src/components/ui/login-screen/passwordless-approval.d.ts.map +1 -1
  16. package/dist/src/components/ui/login-screen/passwordless-waiting.d.ts.map +1 -1
  17. package/dist/src/components/ui/login-screen/types.d.cts +3 -6
  18. package/dist/src/components/ui/login-screen/types.d.ts +3 -6
  19. package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
  20. package/dist/src/context/passflow-context.d.cts +19 -2
  21. package/dist/src/context/passflow-context.d.ts +19 -2
  22. package/dist/src/context/passflow-context.d.ts.map +1 -1
  23. package/dist/src/hooks/use-app-settings.d.ts.map +1 -1
  24. package/dist/src/hooks/use-auth-cloud-redirect.d.ts.map +1 -1
  25. package/dist/src/hooks/use-consent.d.cts +9 -8
  26. package/dist/src/hooks/use-consent.d.ts +9 -8
  27. package/dist/src/hooks/use-consent.d.ts.map +1 -1
  28. package/dist/src/hooks/use-provider.d.ts.map +1 -1
  29. package/dist/src/hooks/use-sign-in-ending.d.cts +4 -1
  30. package/dist/src/hooks/use-sign-in-ending.d.ts +4 -1
  31. package/dist/src/hooks/use-sign-in-ending.d.ts.map +1 -1
  32. package/dist/src/index.d.cts +1 -0
  33. package/dist/src/index.d.ts +1 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/utils/get-url-with-tokens.d.cts +6 -1
  36. package/dist/src/utils/get-url-with-tokens.d.ts +6 -1
  37. package/dist/src/utils/get-url-with-tokens.d.ts.map +1 -1
  38. package/dist/src/utils/hand-off.d.cts +15 -0
  39. package/dist/src/utils/hand-off.d.ts +15 -0
  40. package/dist/src/utils/hand-off.d.ts.map +1 -0
  41. package/dist/src/utils/second-factor.d.cts +2 -2
  42. package/dist/src/utils/second-factor.d.ts +2 -2
  43. package/dist/src/utils/second-factor.d.ts.map +1 -1
  44. package/package.json +2 -2
@@ -3,7 +3,7 @@ import type { FC } from 'react';
3
3
  * OIDC consent controller, mounted by the host app on `/web/consent`.
4
4
  *
5
5
  * Standalone by design: it needs no PassflowProvider. The staged request is
6
- * addressed by `parent_challenge_id` on the URL and read with a same-origin
6
+ * addressed by `consent_challenge_id` on the URL and read with a same-origin
7
7
  * cookie, so there is no SDK client, no app settings lookup, and no token to
8
8
  * hold — which is also why mounting it inside the provider would be actively
9
9
  * wrong, since the provider's session-exchange probe would fire against a
@@ -3,7 +3,7 @@ import type { FC } from 'react';
3
3
  * OIDC consent controller, mounted by the host app on `/web/consent`.
4
4
  *
5
5
  * Standalone by design: it needs no PassflowProvider. The staged request is
6
- * addressed by `parent_challenge_id` on the URL and read with a same-origin
6
+ * addressed by `consent_challenge_id` on the URL and read with a same-origin
7
7
  * cookie, so there is no SDK client, no app settings lookup, and no token to
8
8
  * hold — which is also why mounting it inside the provider would be actively
9
9
  * wrong, since the provider's session-exchange probe would fire against a
@@ -5,8 +5,8 @@ type VerifyChallengeApprovalProps = {
5
5
  };
6
6
  /**
7
7
  * The device that opened an emailed link on a row only another device can sign in with. Opening it writes nothing: the
8
- * user reads the request, then approves with the code shown on the other device, or denies. Errors from these calls
9
- * are plain and carry no code, but are not logged here anyway, because this screen holds the OTP and the match code.
8
+ * user reads the request, then signs in or answers that it wasn't them, in one click. Errors from these calls are
9
+ * plain and carry no code, but are not logged here anyway, because this screen holds the OTP.
10
10
  */
11
11
  export declare const VerifyChallengeApproval: FC<VerifyChallengeApprovalProps>;
12
12
  export {};
@@ -5,8 +5,8 @@ type VerifyChallengeApprovalProps = {
5
5
  };
6
6
  /**
7
7
  * The device that opened an emailed link on a row only another device can sign in with. Opening it writes nothing: the
8
- * user reads the request, then approves with the code shown on the other device, or denies. Errors from these calls
9
- * are plain and carry no code, but are not logged here anyway, because this screen holds the OTP and the match code.
8
+ * user reads the request, then signs in or answers that it wasn't them, in one click. Errors from these calls are
9
+ * plain and carry no code, but are not logged here anyway, because this screen holds the OTP.
10
10
  */
11
11
  export declare const VerifyChallengeApproval: FC<VerifyChallengeApprovalProps>;
12
12
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"verify-challenge-approval.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-approval.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAarD,KAAK,4BAA4B,GAAG;IAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CA2GpE,CAAC"}
1
+ {"version":3,"file":"verify-challenge-approval.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-approval.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAYrD,KAAK,4BAA4B,GAAG;IAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAkGpE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;AAOtE,OAAO,oBAAoB,CAAC;AA8L5B,KAAK,6BAA6B,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAuBtE,CAAC"}
1
+ {"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;AAOtE,OAAO,oBAAoB,CAAC;AA2L5B,KAAK,6BAA6B,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAuBtE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type PassflowConfig } from '@passflow/core';
2
2
  import React, { type FC, type ReactNode } from 'react';
3
3
  import { type UpgradeProviderProps } from './upgrade-provider.cjs';
4
- import { type NavigateFunction, type RouterType } from '../../context/index.cjs';
4
+ import { type HandOff, type NavigateFunction, type RouterType } from '../../context/index.cjs';
5
5
  import { readParentChallengeIdFromURL } from '../../utils/url-params.cjs';
6
6
  export { readParentChallengeIdFromURL };
7
7
  /**
@@ -14,6 +14,16 @@ export { readParentChallengeIdFromURL };
14
14
  */
15
15
  export type PassflowUpgradeOptions = Omit<UpgradeProviderProps, 'children' | 'enabled' | 'backend'>;
16
16
  type PassflowProviderProps = PassflowConfig & {
17
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
18
+ keyStoragePrefix?: PassflowConfig['keyStoragePrefix'];
19
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
20
+ tokenExchange?: PassflowConfig['tokenExchange'];
21
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
22
+ platform?: PassflowConfig['platform'];
23
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
24
+ refreshCoordination?: PassflowConfig['refreshCoordination'];
25
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
26
+ refreshStrikes?: PassflowConfig['refreshStrikes'];
17
27
  children: ReactNode;
18
28
  navigate?: NavigateFunction;
19
29
  router?: RouterType;
@@ -44,6 +54,12 @@ type PassflowProviderProps = PassflowConfig & {
44
54
  * is mounted elsewhere. Defaults to `routes.two_factor_verify.path`.
45
55
  */
46
56
  twoFactorVerifyPath?: string;
57
+ /**
58
+ * For the hosted login: the scopes and `state` the app that sent the user here asked for. They decide what goes
59
+ * back to the app after sign-in; unset `scopes` are filled from the app's configuration, else `openid profile id`.
60
+ * Read once, when the provider mounts. Leave unset when the flow is embedded in the app itself.
61
+ */
62
+ handOff?: HandOff;
47
63
  };
48
64
  /**
49
65
  * Passflow auth-endpoint regex used by the OIDC interceptor below.
@@ -67,6 +83,11 @@ type PassflowProviderProps = PassflowConfig & {
67
83
  * OIDC two-step flows)
68
84
  */
69
85
  export declare const AUTH_ENDPOINT_PATTERN: RegExp;
86
+ /**
87
+ * The passwordless status poll. Under a parent, the approved answer is `{ redirect_url }`, which the interceptor
88
+ * follows. It is follow-only: the poll takes no parent, so its request body is never rewritten.
89
+ */
90
+ export declare const PASSWORDLESS_STATUS_PATTERN: RegExp;
70
91
  /**
71
92
  * Has the OIDC interceptor already taken ownership of the post-login navigation?
72
93
  *
@@ -1,7 +1,7 @@
1
1
  import { type PassflowConfig } from '@passflow/core';
2
2
  import React, { type FC, type ReactNode } from 'react';
3
3
  import { type UpgradeProviderProps } from './upgrade-provider.js';
4
- import { type NavigateFunction, type RouterType } from '../../context/index.js';
4
+ import { type HandOff, type NavigateFunction, type RouterType } from '../../context/index.js';
5
5
  import { readParentChallengeIdFromURL } from '../../utils/url-params.js';
6
6
  export { readParentChallengeIdFromURL };
7
7
  /**
@@ -14,6 +14,16 @@ export { readParentChallengeIdFromURL };
14
14
  */
15
15
  export type PassflowUpgradeOptions = Omit<UpgradeProviderProps, 'children' | 'enabled' | 'backend'>;
16
16
  type PassflowProviderProps = PassflowConfig & {
17
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
18
+ keyStoragePrefix?: PassflowConfig['keyStoragePrefix'];
19
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
20
+ tokenExchange?: PassflowConfig['tokenExchange'];
21
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
22
+ platform?: PassflowConfig['platform'];
23
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
24
+ refreshCoordination?: PassflowConfig['refreshCoordination'];
25
+ /** See `PassflowConfig`. Read once, when the provider mounts. */
26
+ refreshStrikes?: PassflowConfig['refreshStrikes'];
17
27
  children: ReactNode;
18
28
  navigate?: NavigateFunction;
19
29
  router?: RouterType;
@@ -44,6 +54,12 @@ type PassflowProviderProps = PassflowConfig & {
44
54
  * is mounted elsewhere. Defaults to `routes.two_factor_verify.path`.
45
55
  */
46
56
  twoFactorVerifyPath?: string;
57
+ /**
58
+ * For the hosted login: the scopes and `state` the app that sent the user here asked for. They decide what goes
59
+ * back to the app after sign-in; unset `scopes` are filled from the app's configuration, else `openid profile id`.
60
+ * Read once, when the provider mounts. Leave unset when the flow is embedded in the app itself.
61
+ */
62
+ handOff?: HandOff;
47
63
  };
48
64
  /**
49
65
  * Passflow auth-endpoint regex used by the OIDC interceptor below.
@@ -67,6 +83,11 @@ type PassflowProviderProps = PassflowConfig & {
67
83
  * OIDC two-step flows)
68
84
  */
69
85
  export declare const AUTH_ENDPOINT_PATTERN: RegExp;
86
+ /**
87
+ * The passwordless status poll. Under a parent, the approved answer is `{ redirect_url }`, which the interceptor
88
+ * follows. It is follow-only: the poll takes no parent, so its request body is never rewritten.
89
+ */
90
+ export declare const PASSWORDLESS_STATUS_PATTERN: RegExp;
70
91
  /**
71
92
  * Has the OIDC interceptor already taken ownership of the post-login navigation?
72
93
  *
@@ -1 +1 @@
1
- {"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAKpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AACtH,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAGpG,OAAO,EAML,KAAK,gBAAgB,EAIrB,KAAK,UAAU,EAEhB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;AAEpG,KAAK,qBAAqB,GAAG,cAAc,GAAG;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAC;IAC3C;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qBAAqB,QAC6F,CAAC;AAiChI;;;;;;;;;;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CAAC;AAwK3E;;;GAGG;AACH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;;;;;;GAMG;AACH,KAAK,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAsLtF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAyIF,eAAO,MAAM,mBAAmB,yCAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAyMtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"passwordless-approval.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/passwordless-approval.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAK3C,OAAO,KAAK,EAAsC,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAgGlG,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAStE,CAAC"}
1
+ {"version":3,"file":"passwordless-approval.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/passwordless-approval.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAsC,8BAA8B,EAAE,MAAM,SAAS,CAAC;AA8DlG,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAStE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"passwordless-waiting.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/passwordless-waiting.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAyBtE,CAAC"}
1
+ {"version":3,"file":"passwordless-waiting.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/passwordless-waiting.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAgBtE,CAAC"}
@@ -360,14 +360,11 @@ export type LoginStatusState = {
360
360
  */
361
361
  export type LoginPasswordlessWaitingState = {
362
362
  kind: 'passwordless-waiting';
363
- /** The 4-digit code the approving device asks for. Only this tab ever shows it. */
364
- matchCode: string;
365
363
  /** The answer to a failed resend. */
366
364
  error?: string | null;
367
365
  /** The label defaults to `Resend email`. */
368
366
  resend?: LoginEmailCodeResend;
369
367
  testId?: string;
370
- codeTestId?: string;
371
368
  };
372
369
  /**
373
370
  * The device that opened the link, approving or denying the sign-in. It shows no identity, and the final messages use
@@ -383,12 +380,12 @@ export type LoginPasswordlessApprovalFormState = {
383
380
  location: string | null;
384
381
  /** Ready to display. */
385
382
  requestedAt: string;
386
- /** Why the last answer failed; clears the typed code. */
383
+ /** Why the last answer failed. */
387
384
  error?: string | null;
388
- /** An answer is in flight: the code and both actions are locked. */
385
+ /** An answer is in flight: both actions are locked. */
389
386
  busy?: boolean;
390
387
  testId?: string;
391
- onApprove: (code: string) => void;
388
+ onApprove: () => void;
392
389
  onDeny: () => void;
393
390
  };
394
391
  /** The sign-in request is still being read: only a progress message shows. */
@@ -360,14 +360,11 @@ export type LoginStatusState = {
360
360
  */
361
361
  export type LoginPasswordlessWaitingState = {
362
362
  kind: 'passwordless-waiting';
363
- /** The 4-digit code the approving device asks for. Only this tab ever shows it. */
364
- matchCode: string;
365
363
  /** The answer to a failed resend. */
366
364
  error?: string | null;
367
365
  /** The label defaults to `Resend email`. */
368
366
  resend?: LoginEmailCodeResend;
369
367
  testId?: string;
370
- codeTestId?: string;
371
368
  };
372
369
  /**
373
370
  * The device that opened the link, approving or denying the sign-in. It shows no identity, and the final messages use
@@ -383,12 +380,12 @@ export type LoginPasswordlessApprovalFormState = {
383
380
  location: string | null;
384
381
  /** Ready to display. */
385
382
  requestedAt: string;
386
- /** Why the last answer failed; clears the typed code. */
383
+ /** Why the last answer failed. */
387
384
  error?: string | null;
388
- /** An answer is in flight: the code and both actions are locked. */
385
+ /** An answer is in flight: both actions are locked. */
389
386
  busy?: boolean;
390
387
  testId?: string;
391
- onApprove: (code: string) => void;
388
+ onApprove: () => void;
392
389
  onDeny: () => void;
393
390
  };
394
391
  /** The sign-in request is still being read: only a progress message shows. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,g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ACnB,6BAA6B,GAC7B,8BAA8B,GAC9B,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,uBAAuB,GACvB,wBAAwB,GACxB,gCAAgC,GAChC,oBAAoB,GACpB,sBAAsB,GACtB,iBAAiB,GACjB,gBAAgB,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC"}
@@ -1,5 +1,14 @@
1
1
  import type { AppSettings, Passflow, PassflowPasswordPolicySettings } from '@passflow/core';
2
2
  import { type Dispatch } from 'react';
3
+ /**
4
+ * What the app that sent the user to the hosted login asked for. `scopes` decide what goes back to it (`id` gives an
5
+ * ID token, `offline` or `offline_access` a refresh token); unset, they are filled from the app's configuration.
6
+ * `state` is echoed back to the app.
7
+ */
8
+ export type HandOff = {
9
+ scopes?: string[];
10
+ state?: string;
11
+ };
3
12
  export type PassflowState = {
4
13
  appSettings: AppSettings | null;
5
14
  passwordPolicy: PassflowPasswordPolicySettings | null;
@@ -10,10 +19,18 @@ export type PassflowState = {
10
19
  parseQueryParams?: boolean;
11
20
  isDiscoveringAppId?: boolean;
12
21
  hasSettingsError?: boolean;
22
+ handOff?: HandOff;
13
23
  };
14
- export type PassflowAction = {
24
+ export type PassflowAction =
25
+ /** Merged into the state: a dispatch carries only the fields it changes. */
26
+ {
15
27
  type: 'SET_PASSFLOW_STATE';
16
- payload: PassflowState;
28
+ payload: Partial<PassflowState>;
29
+ }
30
+ /** Scopes found in the app's configuration, applied under a hand-off against the current state. */
31
+ | {
32
+ type: 'SET_FOUND_SCOPES';
33
+ found: string[] | undefined;
17
34
  };
18
35
  export type PassflowContextType = {
19
36
  state: PassflowState;
@@ -1,5 +1,14 @@
1
1
  import type { AppSettings, Passflow, PassflowPasswordPolicySettings } from '@passflow/core';
2
2
  import { type Dispatch } from 'react';
3
+ /**
4
+ * What the app that sent the user to the hosted login asked for. `scopes` decide what goes back to it (`id` gives an
5
+ * ID token, `offline` or `offline_access` a refresh token); unset, they are filled from the app's configuration.
6
+ * `state` is echoed back to the app.
7
+ */
8
+ export type HandOff = {
9
+ scopes?: string[];
10
+ state?: string;
11
+ };
3
12
  export type PassflowState = {
4
13
  appSettings: AppSettings | null;
5
14
  passwordPolicy: PassflowPasswordPolicySettings | null;
@@ -10,10 +19,18 @@ export type PassflowState = {
10
19
  parseQueryParams?: boolean;
11
20
  isDiscoveringAppId?: boolean;
12
21
  hasSettingsError?: boolean;
22
+ handOff?: HandOff;
13
23
  };
14
- export type PassflowAction = {
24
+ export type PassflowAction =
25
+ /** Merged into the state: a dispatch carries only the fields it changes. */
26
+ {
15
27
  type: 'SET_PASSFLOW_STATE';
16
- payload: PassflowState;
28
+ payload: Partial<PassflowState>;
29
+ }
30
+ /** Scopes found in the app's configuration, applied under a hand-off against the current state. */
31
+ | {
32
+ type: 'SET_FOUND_SCOPES';
33
+ found: string[] | undefined;
17
34
  };
18
35
  export type PassflowContextType = {
19
36
  state: PassflowState;
@@ -1 +1 @@
1
- {"version":3,"file":"passflow-context.d.ts","sourceRoot":"","sources":["../../../src/context/passflow-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAiB,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,8BAA8B,GAAG,IAAI,CAAC;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,C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AC;AAMF,eAAO,MAAM,cAAc,EAAE,mBAuN5B,CAAC"}
1
+ {"version":3,"file":"use-app-settings.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-app-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAMtH,MAAM,MAAM,mBAAmB,GAAG,MAAM;IACtC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,8BAA8B,GAAG,IAAI,CAAC;IACtD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sBAAsB,EAAE,OAAO,CAAC;IAChC,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAClC,CAAC;AAMF,eAAO,MAAM,cAAc,EAAE,mBAoK5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-auth-cloud-redirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-auth-cloud-redirect.ts"],"names":[],"mappings":"AAEA,KAAK,yBAAyB,GAAG,CAAC,gBAAgB,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AAE1E,eAAO,MAAM,oBAAoB,EAAE,yBAMlC,CAAC"}
1
+ {"version":3,"file":"use-auth-cloud-redirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-auth-cloud-redirect.ts"],"names":[],"mappings":"AAEA,KAAK,yBAAyB,GAAG,CAAC,gBAAgB,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AAE1E,eAAO,MAAM,oBAAoB,EAAE,yBASlC,CAAC"}
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * The OIDC consent decision, as a hook.
3
3
  *
4
- * The URL is the bearer. `parent_challenge_id` identifies a staged
5
- * authorization request the server is holding, and possessing that id is what
6
- * authorizes reading it — there is no Authorization header on the GET. The
7
- * server hands back a `csrf_token` with the request metadata, and every
8
- * state-changing POST must carry it back in `X-Passflow-CSRF`. That token is
9
- * the only thing separating a real decision from one a third-party page forged
10
- * on the user's behalf, so it is never optional and never cached across
4
+ * The URL is the bearer. `consent_challenge_id` identifies the consent step the
5
+ * server staged for the user who just signed in, and that id is handed only to
6
+ * this browser, in the redirect that ends sign-in. Possessing it is what
7
+ * authorizes reading the staged request — there is no Authorization header on
8
+ * the GET. The server hands back a `csrf_token` with the request metadata, and
9
+ * every state-changing POST must carry it back in `X-Passflow-CSRF`. That token
10
+ * is the only thing separating a real decision from one a third-party page
11
+ * forged on the user's behalf, so it is never optional and never cached across
11
12
  * challenges.
12
13
  *
13
14
  * The decision endpoints answer with a discriminated response rather than a
@@ -21,7 +22,7 @@ export type ConsentScopeMetadata = {
21
22
  label: string;
22
23
  description: string;
23
24
  };
24
- /** What GET /oidc/requests/{parent_challenge_id} hands the page to render itself. */
25
+ /** What GET /oidc/requests/{consent_challenge_id} hands the page to render itself. */
25
26
  export type ConsentInfo = {
26
27
  client_id: string;
27
28
  app_name: string;
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * The OIDC consent decision, as a hook.
3
3
  *
4
- * The URL is the bearer. `parent_challenge_id` identifies a staged
5
- * authorization request the server is holding, and possessing that id is what
6
- * authorizes reading it — there is no Authorization header on the GET. The
7
- * server hands back a `csrf_token` with the request metadata, and every
8
- * state-changing POST must carry it back in `X-Passflow-CSRF`. That token is
9
- * the only thing separating a real decision from one a third-party page forged
10
- * on the user's behalf, so it is never optional and never cached across
4
+ * The URL is the bearer. `consent_challenge_id` identifies the consent step the
5
+ * server staged for the user who just signed in, and that id is handed only to
6
+ * this browser, in the redirect that ends sign-in. Possessing it is what
7
+ * authorizes reading the staged request — there is no Authorization header on
8
+ * the GET. The server hands back a `csrf_token` with the request metadata, and
9
+ * every state-changing POST must carry it back in `X-Passflow-CSRF`. That token
10
+ * is the only thing separating a real decision from one a third-party page
11
+ * forged on the user's behalf, so it is never optional and never cached across
11
12
  * challenges.
12
13
  *
13
14
  * The decision endpoints answer with a discriminated response rather than a
@@ -21,7 +22,7 @@ export type ConsentScopeMetadata = {
21
22
  label: string;
22
23
  description: string;
23
24
  };
24
- /** What GET /oidc/requests/{parent_challenge_id} hands the page to render itself. */
25
+ /** What GET /oidc/requests/{consent_challenge_id} hands the page to render itself. */
25
26
  export type ConsentInfo = {
26
27
  client_id: string;
27
28
  app_name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-consent.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-consent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qFAAqF;AACrF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,EAAE,GAAG,OAAO,GAAG,WAAW,CAAC;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAWF,MAAM,MAAM,aAAa;AACvB,mCAAmC;AACjC,SAAS;AACX,sDAAsD;GACpD,OAAO;AACT,+BAA+B;GAC7B,SAAS;AACX,uEAAuE;GACrE,aAAa;AACf,gFAAgF;GAC9E,SAAS,CAAC;AAEd,MAAM,MAAM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BAAkB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,qBAAqB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAsBzB,CAAC"}
1
+ {"version":3,"file":"use-provider.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA0BhD,MAAM,MAAM,gBAAgB,GAAG,CAC7B,WAAW,CAAC,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE,OAAO,EACtB,gBAAgB,CAAC,EAAE,gBAAgB,KAChC;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,qBAAqB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAgCzB,CAAC"}
@@ -3,10 +3,13 @@ export type SignInEnding = 'none' | 'checking' | 'signed-in' | 'refused' | 'unav
3
3
  * How every sign-in ends once the user holds tokens, in this order:
4
4
  * 1. With no target, or a target that is the sign-in page itself, the user stays and is told they are signed in.
5
5
  * 2. A path on this page's origin is a plain navigation. It carries no tokens.
6
- * 3. Anything else carries tokens. A target that came with the request (a prop, the URL, a token or a response) is
6
+ * 3. Anything else is left for. A target that came with the request (a prop, the URL, a token or a response) is
7
7
  * validated by the server first and the user goes to the address it returns. If the server refuses, fails, or
8
8
  * Passflow cannot be reached at all, nothing is sent: `ending` says which, and `retry` asks again. The app's own
9
9
  * default redirect is its operator's configuration and is not checked. The source decides, not the value.
10
+ * 4. Tokens go in the URL only for an app in Simple mode; in SDK mode the user goes to the address with nothing, and
11
+ * the app's SDK starts the sign-in. If the app's mode cannot be read, nothing is sent and `ending` is
12
+ * `unavailable`.
10
13
  */
11
14
  export declare const useSignInEnding: () => {
12
15
  ending: SignInEnding;
@@ -3,10 +3,13 @@ export type SignInEnding = 'none' | 'checking' | 'signed-in' | 'refused' | 'unav
3
3
  * How every sign-in ends once the user holds tokens, in this order:
4
4
  * 1. With no target, or a target that is the sign-in page itself, the user stays and is told they are signed in.
5
5
  * 2. A path on this page's origin is a plain navigation. It carries no tokens.
6
- * 3. Anything else carries tokens. A target that came with the request (a prop, the URL, a token or a response) is
6
+ * 3. Anything else is left for. A target that came with the request (a prop, the URL, a token or a response) is
7
7
  * validated by the server first and the user goes to the address it returns. If the server refuses, fails, or
8
8
  * Passflow cannot be reached at all, nothing is sent: `ending` says which, and `retry` asks again. The app's own
9
9
  * default redirect is its operator's configuration and is not checked. The source decides, not the value.
10
+ * 4. Tokens go in the URL only for an app in Simple mode; in SDK mode the user goes to the address with nothing, and
11
+ * the app's SDK starts the sign-in. If the app's mode cannot be read, nothing is sent and `ending` is
12
+ * `unavailable`.
10
13
  */
11
14
  export declare const useSignInEnding: () => {
12
15
  ending: SignInEnding;
@@ -1 +1 @@
1
- {"version":3,"file":"use-sign-in-ending.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-sign-in-ending.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAEjH;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;+BAwBc,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI;CAqBlF,CAAC"}
1
+ {"version":3,"file":"use-sign-in-ending.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-sign-in-ending.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAEjH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe;;;+BAuCc,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI;CAwBlF,CAAC"}
@@ -4,6 +4,7 @@ export * from './components/form/index.cjs';
4
4
  export type { PassflowUpgradeOptions, UpgradeProviderProps } from './components/provider/index.cjs';
5
5
  export { PassflowProvider, UpgradeProvider } from './components/provider/index.cjs';
6
6
  export * from './components/ui/index.cjs';
7
+ export type { HandOff } from './context/passflow-context.cjs';
7
8
  export { INERT_UPGRADE_CONTEXT, UpgradeContext, type UpgradeContextValue, type UpgradeElevateOptions, type UpgradeErrorStatusKind, type UpgradeHookState, type UpgradePromptView, type UpgradeSettledState, } from './context/upgrade-context.cjs';
8
9
  export * from './hooks/index.cjs';
9
10
  export type { EmailCodeStep, EmailVerificationStep } from './types/index.cjs';
@@ -4,6 +4,7 @@ export * from './components/form/index.js';
4
4
  export type { PassflowUpgradeOptions, UpgradeProviderProps } from './components/provider/index.js';
5
5
  export { PassflowProvider, UpgradeProvider } from './components/provider/index.js';
6
6
  export * from './components/ui/index.js';
7
+ export type { HandOff } from './context/passflow-context.js';
7
8
  export { INERT_UPGRADE_CONTEXT, UpgradeContext, type UpgradeContextValue, type UpgradeElevateOptions, type UpgradeErrorStatusKind, type UpgradeHookState, type UpgradePromptView, type UpgradeSettledState, } from './context/upgrade-context.js';
8
9
  export * from './hooks/index.js';
9
10
  export type { EmailCodeStep, EmailVerificationStep } from './types/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AAEjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,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AM,sBAAsB,CAAC"}
@@ -1,4 +1,9 @@
1
1
  import type { Passflow } from '@passflow/core';
2
+ import type { HandOff } from '../context/passflow-context.cjs';
2
3
  export type TokenUrlFormat = 'query' | 'hash';
3
- export declare const getUrlWithTokens: (passflow: Passflow, url: string, format?: TokenUrlFormat) => Promise<string>;
4
+ /**
5
+ * `url` with the stored tokens appended. Without `handOff` every token goes. With it, the refresh token goes only
6
+ * when the app asked for `offline` or `offline_access`, and the app's `state` is appended.
7
+ */
8
+ export declare const getUrlWithTokens: (passflow: Passflow, url: string, format?: TokenUrlFormat, handOff?: HandOff) => Promise<string>;
4
9
  //# sourceMappingURL=get-url-with-tokens.d.ts.map
@@ -1,4 +1,9 @@
1
1
  import type { Passflow } from '@passflow/core';
2
+ import type { HandOff } from '../context/passflow-context.js';
2
3
  export type TokenUrlFormat = 'query' | 'hash';
3
- export declare const getUrlWithTokens: (passflow: Passflow, url: string, format?: TokenUrlFormat) => Promise<string>;
4
+ /**
5
+ * `url` with the stored tokens appended. Without `handOff` every token goes. With it, the refresh token goes only
6
+ * when the app asked for `offline` or `offline_access`, and the app's `state` is appended.
7
+ */
8
+ export declare const getUrlWithTokens: (passflow: Passflow, url: string, format?: TokenUrlFormat, handOff?: HandOff) => Promise<string>;
4
9
  //# sourceMappingURL=get-url-with-tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-url-with-tokens.d.ts","sourceRoot":"","sources":["../../../src/utils/get-url-with-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9C,eAAO,MAAM,gBAAgB,aAAoB,QAAQ,OAAO,MAAM,WAAU,cAAc,KAAY,OAAO,CAAC,MAAM,CAmBvH,CAAC"}
1
+ {"version":3,"file":"get-url-with-tokens.d.ts","sourceRoot":"","sources":["../../../src/utils/get-url-with-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAG1D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAI9C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,aACjB,QAAQ,OACb,MAAM,WACH,cAAc,YACZ,OAAO,KAChB,OAAO,CAAC,MAAM,CAsBhB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { HandOff, PassflowState } from '../context/passflow-context.cjs';
2
+ /** `list` with `scope` added at the end, in order and without duplicates. */
3
+ export declare const withScope: (list: readonly string[], scope: string) => string[];
4
+ /**
5
+ * The scopes the app asked for, which decide what goes back to it. The one place they are read: `undefined` when
6
+ * there is no hand-off (embedded use), never the sign-in scopes in `state.scopes`.
7
+ */
8
+ export declare const handOffScopes: (handOff: HandOff | undefined) => string[] | undefined;
9
+ /**
10
+ * What found scopes write under a hand-off: the hand-off scopes (with `id`) and the sign-in scopes (also with
11
+ * `offline`), and only while the hand-off scopes are unset, so the first value found wins and a requested value is
12
+ * never replaced. Nothing without a hand-off or when nothing was found.
13
+ */
14
+ export declare const handOffScopesUpdate: (state: PassflowState, found: string[] | undefined) => Partial<PassflowState>;
15
+ //# sourceMappingURL=hand-off.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { HandOff, PassflowState } from '../context/passflow-context.js';
2
+ /** `list` with `scope` added at the end, in order and without duplicates. */
3
+ export declare const withScope: (list: readonly string[], scope: string) => string[];
4
+ /**
5
+ * The scopes the app asked for, which decide what goes back to it. The one place they are read: `undefined` when
6
+ * there is no hand-off (embedded use), never the sign-in scopes in `state.scopes`.
7
+ */
8
+ export declare const handOffScopes: (handOff: HandOff | undefined) => string[] | undefined;
9
+ /**
10
+ * What found scopes write under a hand-off: the hand-off scopes (with `id`) and the sign-in scopes (also with
11
+ * `offline`), and only while the hand-off scopes are unset, so the first value found wins and a requested value is
12
+ * never replaced. Nothing without a hand-off or when nothing was found.
13
+ */
14
+ export declare const handOffScopesUpdate: (state: PassflowState, found: string[] | undefined) => Partial<PassflowState>;
15
+ //# sourceMappingURL=hand-off.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hand-off.d.ts","sourceRoot":"","sources":["../../../src/utils/hand-off.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAKzE,6EAA6E;AAC7E,eAAO,MAAM,SAAS,SAAU,SAAS,MAAM,EAAE,SAAS,MAAM,KAAG,MAAM,EAAoC,CAAC;AAE9G;;;GAGG;AACH,eAAO,MAAM,aAAa,YAAa,OAAO,GAAG,SAAS,KAAG,MAAM,EAAE,GAAG,SACL,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,UAAW,aAAa,SAAS,MAAM,EAAE,GAAG,SAAS,KAAG,OAAO,CAAC,aAAa,CAI5G,CAAC"}