@stytch/react 20.0.0-next.0 → 20.0.0-next.1

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 (270) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/{StytchSSRProxy-CUOvjF03.js → StytchSSRProxy-Bz6LNYdq.js} +186 -1
  3. package/dist/cjs/StytchSSRProxy-Bz6LNYdq.js.map +1 -0
  4. package/dist/cjs/adminPortal/index.cjs +102 -26
  5. package/dist/cjs/adminPortal/index.cjs.map +1 -1
  6. package/dist/cjs/b2b/index.cjs +176 -138
  7. package/dist/cjs/b2b/index.cjs.map +1 -1
  8. package/dist/cjs/b2b/index.headless.cjs +24 -24
  9. package/dist/cjs/b2b/index.headless.cjs.map +1 -1
  10. package/dist/cjs/{idpHelpers-eUP8j58U.js → idpHelpers-Bj_7pbfW.js} +7 -191
  11. package/dist/cjs/idpHelpers-Bj_7pbfW.js.map +1 -0
  12. package/dist/cjs/{index-DfiRrtK8.js → index-Ni_dyEsz.js} +3 -3
  13. package/dist/cjs/{index-DfiRrtK8.js.map → index-Ni_dyEsz.js.map} +1 -1
  14. package/dist/cjs/index.cjs +207 -196
  15. package/dist/cjs/index.cjs.map +1 -1
  16. package/dist/cjs/index.headless.cjs +32 -32
  17. package/dist/cjs/index.headless.cjs.map +1 -1
  18. package/dist/cjs/{passwordManagerDisableAutofillProps-C0akDAKd.js → passwordManagerDisableAutofillProps-DV31RTL_.js} +2 -2
  19. package/dist/cjs/{passwordManagerDisableAutofillProps-C0akDAKd.js.map → passwordManagerDisableAutofillProps-DV31RTL_.js.map} +1 -1
  20. package/dist/cjs/{shadcn-Bbv2Hk3P.js → shadcn-B8TEzQMT.js} +99 -81
  21. package/dist/cjs/shadcn-B8TEzQMT.js.map +1 -0
  22. package/dist/cjs-dev/{StytchSSRProxy-D0B5PuT0.js → StytchSSRProxy-CxXsyme4.js} +186 -1
  23. package/dist/cjs-dev/StytchSSRProxy-CxXsyme4.js.map +1 -0
  24. package/dist/cjs-dev/adminPortal/index.cjs +102 -26
  25. package/dist/cjs-dev/adminPortal/index.cjs.map +1 -1
  26. package/dist/cjs-dev/b2b/index.cjs +176 -138
  27. package/dist/cjs-dev/b2b/index.cjs.map +1 -1
  28. package/dist/cjs-dev/b2b/index.headless.cjs +24 -24
  29. package/dist/cjs-dev/b2b/index.headless.cjs.map +1 -1
  30. package/dist/cjs-dev/{idpHelpers-DOOVv6dT.js → idpHelpers-Cf8Qq1B4.js} +7 -191
  31. package/dist/cjs-dev/idpHelpers-Cf8Qq1B4.js.map +1 -0
  32. package/dist/cjs-dev/{index-paeFcHjf.js → index-DdK3Jt4u.js} +3 -3
  33. package/dist/cjs-dev/{index-paeFcHjf.js.map → index-DdK3Jt4u.js.map} +1 -1
  34. package/dist/cjs-dev/index.cjs +207 -196
  35. package/dist/cjs-dev/index.cjs.map +1 -1
  36. package/dist/cjs-dev/index.headless.cjs +32 -32
  37. package/dist/cjs-dev/index.headless.cjs.map +1 -1
  38. package/dist/cjs-dev/{passwordManagerDisableAutofillProps-CnLBAXyr.js → passwordManagerDisableAutofillProps-D70WyvIu.js} +2 -2
  39. package/dist/cjs-dev/{passwordManagerDisableAutofillProps-CnLBAXyr.js.map → passwordManagerDisableAutofillProps-D70WyvIu.js.map} +1 -1
  40. package/dist/cjs-dev/{shadcn-CdbmlhdF.js → shadcn-C4w3DtKK.js} +99 -81
  41. package/dist/cjs-dev/shadcn-C4w3DtKK.js.map +1 -0
  42. package/dist/esm/_virtual/index.mjs +4 -4
  43. package/dist/esm/_virtual/index3.mjs +3 -5
  44. package/dist/esm/_virtual/index3.mjs.map +1 -1
  45. package/dist/esm/_virtual/index4.mjs +5 -3
  46. package/dist/esm/_virtual/index4.mjs.map +1 -1
  47. package/dist/esm/_virtual/index6.mjs +2 -2
  48. package/dist/esm/_virtual/index7.mjs +2 -2
  49. package/dist/esm/adminPortal/index.mjs +4 -1
  50. package/dist/esm/adminPortal/index.mjs.map +1 -1
  51. package/dist/esm/b2b/index.mjs.map +1 -1
  52. package/dist/esm/node_modules/lodash.merge/index.mjs +1 -1
  53. package/dist/esm/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  54. package/dist/esm/packages/core/src/rpc/FrameClient.mjs +1 -0
  55. package/dist/esm/packages/core/src/rpc/FrameClient.mjs.map +1 -1
  56. package/dist/esm/packages/web/messages/b2b/en.json.mjs +10 -3
  57. package/dist/esm/packages/web/messages/b2b/en.json.mjs.map +1 -1
  58. package/dist/esm/packages/web/messages/en.json.mjs +10 -3
  59. package/dist/esm/packages/web/messages/en.json.mjs.map +1 -1
  60. package/dist/esm/packages/web/src/adminPortal/memberManagement/AccessSection.mjs +6 -3
  61. package/dist/esm/packages/web/src/adminPortal/memberManagement/AccessSection.mjs.map +1 -1
  62. package/dist/esm/packages/web/src/adminPortal/memberManagement/InviteModal.mjs +4 -1
  63. package/dist/esm/packages/web/src/adminPortal/memberManagement/InviteModal.mjs.map +1 -1
  64. package/dist/esm/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs +3 -1
  65. package/dist/esm/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs.map +1 -1
  66. package/dist/esm/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs +6 -2
  67. package/dist/esm/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs.map +1 -1
  68. package/dist/esm/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs +7 -3
  69. package/dist/esm/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs.map +1 -1
  70. package/dist/esm/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs +5 -1
  71. package/dist/esm/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs.map +1 -1
  72. package/dist/esm/packages/web/src/adminPortal/utils/theme.mjs +1 -1
  73. package/dist/esm/packages/web/src/adminPortal/utils/useRbac.mjs.map +1 -1
  74. package/dist/esm/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs +3 -3
  75. package/dist/esm/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs.map +1 -1
  76. package/dist/esm/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs +2 -2
  77. package/dist/esm/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs.map +1 -1
  78. package/dist/esm/packages/web/src/adminPortal/utils/useRoles.mjs +7 -2
  79. package/dist/esm/packages/web/src/adminPortal/utils/useRoles.mjs.map +1 -1
  80. package/dist/esm/packages/web/src/ui/b2b/components/OrganizationRow.mjs +1 -1
  81. package/dist/esm/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs +27 -3
  82. package/dist/esm/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs.map +1 -1
  83. package/dist/esm/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs +2 -0
  84. package/dist/esm/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs.map +1 -1
  85. package/dist/esm/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs +2 -0
  86. package/dist/esm/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs.map +1 -1
  87. package/dist/esm/packages/web/src/ui/b2b/utils.mjs +8 -1
  88. package/dist/esm/packages/web/src/ui/b2b/utils.mjs.map +1 -1
  89. package/dist/esm/packages/web/src/ui/b2c/components/GoogleOneTap.mjs +1 -1
  90. package/dist/esm/packages/web/src/ui/b2c/screens/Main/LoginForm/index.mjs +1 -1
  91. package/dist/esm/packages/web/src/ui/b2c/screens/Passkey/EditableRow.mjs +1 -1
  92. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs +10 -4
  93. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs.map +1 -1
  94. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs +2 -1
  95. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs.map +1 -1
  96. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs +5 -68
  97. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs.map +1 -1
  98. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs +71 -0
  99. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs.map +1 -0
  100. package/dist/esm/packages/web/src/ui/components/atoms/AnimatedContainer.mjs +1 -1
  101. package/dist/esm/packages/web/src/ui/components/atoms/Button.mjs +1 -1
  102. package/dist/esm/packages/web/src/ui/components/atoms/CircularProgress.mjs +4 -5
  103. package/dist/esm/packages/web/src/ui/components/atoms/CircularProgress.mjs.map +1 -1
  104. package/dist/esm/packages/web/src/ui/components/atoms/CodeContainer.mjs +1 -1
  105. package/dist/esm/packages/web/src/ui/components/atoms/Column.mjs +1 -1
  106. package/dist/esm/packages/web/src/ui/components/atoms/Typography.mjs +1 -1
  107. package/dist/esm/packages/web/src/ui/components/atoms/VerticalTransition.mjs +1 -1
  108. package/dist/esm/packages/web/src/ui/components/atoms/VisuallyHidden.mjs +1 -1
  109. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs +14 -23
  110. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  111. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  112. package/dist/esm/packages/web/src/ui/components/molecules/Badge.mjs +1 -1
  113. package/dist/esm/packages/web/src/ui/components/molecules/EmailInput.mjs +1 -1
  114. package/dist/esm/packages/web/src/ui/components/molecules/EmailInput.mjs.map +1 -1
  115. package/dist/esm/packages/web/src/ui/components/molecules/ErrorText.mjs +12 -4
  116. package/dist/esm/packages/web/src/ui/components/molecules/ErrorText.mjs.map +1 -1
  117. package/dist/esm/packages/web/src/ui/components/molecules/Input.mjs +3 -2
  118. package/dist/esm/packages/web/src/ui/components/molecules/Input.mjs.map +1 -1
  119. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.mjs +6 -6
  120. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.mjs.map +1 -1
  121. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +2 -2
  122. package/dist/esm/packages/web/src/ui/components/molecules/OtpInput.mjs +1 -1
  123. package/dist/esm/packages/web/src/ui/components/molecules/PasswordStrengthCheck.mjs +1 -1
  124. package/dist/esm/packages/web/src/ui/components/molecules/PhoneInput.mjs +3 -4
  125. package/dist/esm/packages/web/src/ui/components/molecules/PhoneInput.mjs.map +1 -1
  126. package/dist/esm/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs +26 -3
  127. package/dist/esm/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs.map +1 -1
  128. package/dist/esm/packages/web/src/ui/components/organisms/IDPConsentManifest.mjs +1 -1
  129. package/dist/esm/packages/web/src/ui/components/organisms/OneTapError.mjs +1 -1
  130. package/dist/esm/packages/web/src/ui/components/organisms/ResendOTPButton.mjs +2 -2
  131. package/dist/esm/packages/web/src/ui/components/organisms/ResendOTPButton.mjs.map +1 -1
  132. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs +0 -42
  133. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs.map +1 -1
  134. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs +0 -40
  135. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs.map +1 -1
  136. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs +0 -43
  137. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs.map +1 -1
  138. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs +0 -36
  139. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs.map +1 -1
  140. package/dist/esm/packages/web/src/ui/react/b2b/Stytch.mjs.map +1 -1
  141. package/dist/esm/packages/web/src/ui/react/bindings/createB2BComponent.mjs.map +1 -1
  142. package/dist/esm/packages/web/src/utils/crypto.mjs +1 -1
  143. package/dist/esm-dev/_virtual/index.mjs +4 -4
  144. package/dist/esm-dev/_virtual/index3.mjs +3 -5
  145. package/dist/esm-dev/_virtual/index3.mjs.map +1 -1
  146. package/dist/esm-dev/_virtual/index4.mjs +5 -3
  147. package/dist/esm-dev/_virtual/index4.mjs.map +1 -1
  148. package/dist/esm-dev/_virtual/index6.mjs +2 -2
  149. package/dist/esm-dev/_virtual/index7.mjs +2 -2
  150. package/dist/esm-dev/adminPortal/index.mjs +4 -1
  151. package/dist/esm-dev/adminPortal/index.mjs.map +1 -1
  152. package/dist/esm-dev/b2b/index.mjs.map +1 -1
  153. package/dist/esm-dev/node_modules/lodash.merge/index.mjs +1 -1
  154. package/dist/esm-dev/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  155. package/dist/esm-dev/packages/core/src/rpc/FrameClient.mjs +1 -0
  156. package/dist/esm-dev/packages/core/src/rpc/FrameClient.mjs.map +1 -1
  157. package/dist/esm-dev/packages/web/messages/b2b/en.json.mjs +10 -3
  158. package/dist/esm-dev/packages/web/messages/b2b/en.json.mjs.map +1 -1
  159. package/dist/esm-dev/packages/web/messages/en.json.mjs +10 -3
  160. package/dist/esm-dev/packages/web/messages/en.json.mjs.map +1 -1
  161. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/AccessSection.mjs +6 -3
  162. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/AccessSection.mjs.map +1 -1
  163. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/InviteModal.mjs +4 -1
  164. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/InviteModal.mjs.map +1 -1
  165. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs +3 -1
  166. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs.map +1 -1
  167. package/dist/esm-dev/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs +6 -2
  168. package/dist/esm-dev/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs.map +1 -1
  169. package/dist/esm-dev/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs +7 -3
  170. package/dist/esm-dev/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs.map +1 -1
  171. package/dist/esm-dev/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs +5 -1
  172. package/dist/esm-dev/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs.map +1 -1
  173. package/dist/esm-dev/packages/web/src/adminPortal/utils/theme.mjs +1 -1
  174. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRbac.mjs.map +1 -1
  175. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs +3 -3
  176. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs.map +1 -1
  177. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs +2 -2
  178. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs.map +1 -1
  179. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoles.mjs +7 -2
  180. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoles.mjs.map +1 -1
  181. package/dist/esm-dev/packages/web/src/ui/b2b/components/OrganizationRow.mjs +1 -1
  182. package/dist/esm-dev/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs +27 -3
  183. package/dist/esm-dev/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs.map +1 -1
  184. package/dist/esm-dev/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs +2 -0
  185. package/dist/esm-dev/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs.map +1 -1
  186. package/dist/esm-dev/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs +2 -0
  187. package/dist/esm-dev/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs.map +1 -1
  188. package/dist/esm-dev/packages/web/src/ui/b2b/utils.mjs +8 -1
  189. package/dist/esm-dev/packages/web/src/ui/b2b/utils.mjs.map +1 -1
  190. package/dist/esm-dev/packages/web/src/ui/b2c/components/GoogleOneTap.mjs +1 -1
  191. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Main/LoginForm/index.mjs +1 -1
  192. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Passkey/EditableRow.mjs +1 -1
  193. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs +10 -4
  194. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs.map +1 -1
  195. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs +2 -1
  196. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs.map +1 -1
  197. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs +5 -68
  198. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs.map +1 -1
  199. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs +71 -0
  200. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs.map +1 -0
  201. package/dist/esm-dev/packages/web/src/ui/components/atoms/AnimatedContainer.mjs +1 -1
  202. package/dist/esm-dev/packages/web/src/ui/components/atoms/Button.mjs +1 -1
  203. package/dist/esm-dev/packages/web/src/ui/components/atoms/CircularProgress.mjs +4 -5
  204. package/dist/esm-dev/packages/web/src/ui/components/atoms/CircularProgress.mjs.map +1 -1
  205. package/dist/esm-dev/packages/web/src/ui/components/atoms/CodeContainer.mjs +1 -1
  206. package/dist/esm-dev/packages/web/src/ui/components/atoms/Column.mjs +1 -1
  207. package/dist/esm-dev/packages/web/src/ui/components/atoms/Typography.mjs +1 -1
  208. package/dist/esm-dev/packages/web/src/ui/components/atoms/VerticalTransition.mjs +1 -1
  209. package/dist/esm-dev/packages/web/src/ui/components/atoms/VisuallyHidden.mjs +1 -1
  210. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs +14 -23
  211. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  212. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  213. package/dist/esm-dev/packages/web/src/ui/components/molecules/Badge.mjs +1 -1
  214. package/dist/esm-dev/packages/web/src/ui/components/molecules/EmailInput.mjs +1 -1
  215. package/dist/esm-dev/packages/web/src/ui/components/molecules/EmailInput.mjs.map +1 -1
  216. package/dist/esm-dev/packages/web/src/ui/components/molecules/ErrorText.mjs +12 -4
  217. package/dist/esm-dev/packages/web/src/ui/components/molecules/ErrorText.mjs.map +1 -1
  218. package/dist/esm-dev/packages/web/src/ui/components/molecules/Input.mjs +3 -2
  219. package/dist/esm-dev/packages/web/src/ui/components/molecules/Input.mjs.map +1 -1
  220. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.mjs +6 -6
  221. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.mjs.map +1 -1
  222. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +2 -2
  223. package/dist/esm-dev/packages/web/src/ui/components/molecules/OtpInput.mjs +1 -1
  224. package/dist/esm-dev/packages/web/src/ui/components/molecules/PasswordStrengthCheck.mjs +1 -1
  225. package/dist/esm-dev/packages/web/src/ui/components/molecules/PhoneInput.mjs +3 -4
  226. package/dist/esm-dev/packages/web/src/ui/components/molecules/PhoneInput.mjs.map +1 -1
  227. package/dist/esm-dev/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs +26 -3
  228. package/dist/esm-dev/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs.map +1 -1
  229. package/dist/esm-dev/packages/web/src/ui/components/organisms/IDPConsentManifest.mjs +1 -1
  230. package/dist/esm-dev/packages/web/src/ui/components/organisms/ResendOTPButton.mjs +2 -2
  231. package/dist/esm-dev/packages/web/src/ui/components/organisms/ResendOTPButton.mjs.map +1 -1
  232. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs +0 -42
  233. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs.map +1 -1
  234. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs +0 -40
  235. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs.map +1 -1
  236. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs +0 -43
  237. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs.map +1 -1
  238. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs +0 -36
  239. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs.map +1 -1
  240. package/dist/esm-dev/packages/web/src/ui/react/b2b/Stytch.mjs.map +1 -1
  241. package/dist/esm-dev/packages/web/src/ui/react/bindings/createB2BComponent.mjs.map +1 -1
  242. package/dist/esm-dev/packages/web/src/utils/crypto.mjs +1 -1
  243. package/dist/types/{StytchB2BClient-Dq-ITB7Q.d.ts → StytchB2BClient-C_7NUKZh.d.ts} +1 -1
  244. package/dist/types/{StytchClient-BV0sT3Ox.d.ts → StytchClient-Ccvk8Nj1.d.ts} +1 -2
  245. package/dist/types/adminPortal/index.d.ts +5 -4
  246. package/dist/types/b2b/index.d.ts +11 -11
  247. package/dist/types/b2b/index.headless.d.ts +4 -4
  248. package/dist/types/{createAuthUrlHandler-Ck5TyB9J.d.ts → createAuthUrlHandler-BJRA2PHG.d.ts} +939 -39
  249. package/dist/types/idpHelpers-aCVwNrDk.d.ts +36 -0
  250. package/dist/types/index.d.ts +8 -8
  251. package/dist/types/index.headless.d.ts +4 -4
  252. package/dist/types/{shadcn-CFz8Asq0.d.ts → shadcn-0e4fkV5Z.d.ts} +6 -6
  253. package/messages/b2b/en.po +6 -3
  254. package/messages/en.po +6 -3
  255. package/package.json +1 -1
  256. package/dist/cjs/StytchSSRProxy-CUOvjF03.js.map +0 -1
  257. package/dist/cjs/idpHelpers-eUP8j58U.js.map +0 -1
  258. package/dist/cjs/shadcn-Bbv2Hk3P.js.map +0 -1
  259. package/dist/cjs-dev/StytchSSRProxy-D0B5PuT0.js.map +0 -1
  260. package/dist/cjs-dev/idpHelpers-DOOVv6dT.js.map +0 -1
  261. package/dist/cjs-dev/shadcn-CdbmlhdF.js.map +0 -1
  262. package/dist/esm/packages/web/src/adminPortal/MuiClassNameSetup.mjs +0 -5
  263. package/dist/esm/packages/web/src/adminPortal/MuiClassNameSetup.mjs.map +0 -1
  264. package/dist/esm/packages/web/src/adminPortal/classNameSeed.mjs +0 -5
  265. package/dist/esm/packages/web/src/adminPortal/classNameSeed.mjs.map +0 -1
  266. package/dist/esm-dev/packages/web/src/adminPortal/MuiClassNameSetup.mjs +0 -5
  267. package/dist/esm-dev/packages/web/src/adminPortal/MuiClassNameSetup.mjs.map +0 -1
  268. package/dist/esm-dev/packages/web/src/adminPortal/classNameSeed.mjs +0 -5
  269. package/dist/esm-dev/packages/web/src/adminPortal/classNameSeed.mjs.map +0 -1
  270. package/dist/types/idpHelpers-hBhPCtAC.d.ts +0 -936
@@ -1,936 +0,0 @@
1
- import { S as StytchProjectConfigurationInput, Z as SessionDurationOptions, V as AuthenticateResponse, R as ResponseCommon, U as User, fD as Cacheable, _ as UnsubscribeFunction, X as DeleteResponse, a2 as SDKDeviceHistory, a3 as ConnectedAppPublic, a4 as ScopeResult } from './createAuthUrlHandler-Ck5TyB9J.js';
2
-
3
- type OAuthGetURLOptions = {
4
- /**
5
- * The URL that Stytch redirects to after the OAuth flow is completed for a user that already exists.
6
- * This URL should be an endpoint in the backend server that verifies the request by querying Stytch's /oauth/authenticate endpoint and finishes the login.
7
- * The URL should be configured as a Login URL in the Stytch Dashboard's Redirect URL page.
8
- * If the field is not specified, the default in the Dashboard is used.
9
- */
10
- login_redirect_url?: string;
11
- /**
12
- * The URL that Stytch redirects to after the OAuth flow is completed for a user that does not yet exist.
13
- * This URL should be an endpoint in the backend server that verifies the request by querying Stytch's /oauth/authenticate endpoint and finishes the login.
14
- * The URL should be configured as a Sign Up URL in the Stytch Dashboard's Redirect URL page.
15
- * If the field is not specified, the default in the Dashboard is used.
16
- */
17
- signup_redirect_url?: string;
18
- /**
19
- * An optional list of custom scopes that you'd like to request from the user in addition to the ones Stytch requests by default.
20
- * @example Google Custom Scopes
21
- * ['https://www.googleapis.com/auth/gmail.compose', 'https://www.googleapis.com/auth/firebase']
22
- *
23
- * @example Facebook Custom Scopes
24
- * ['public_profile', 'instagram_shopping_tag_products']
25
- */
26
- custom_scopes?: string[];
27
- /**
28
- * An optional mapping of provider specific values to pass through to the OAuth provider
29
- * @example Google authorization parameters
30
- * {"prompt": "select_account", "login_hint": "example@stytch.com"}
31
- */
32
- provider_params?: Record<string, string>;
33
- /**
34
- * An optional token to pre-associate an OAuth flow with an existing Stytch User
35
- */
36
- oauth_attach_token?: string;
37
- };
38
- type OAuthAuthenticateOptions = SessionDurationOptions;
39
- type OAuthAuthenticateResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
40
- /**
41
- * The `provider_subject` field is the unique identifier used to identify the user within a given OAuth provider.
42
- * Also commonly called the "sub" or "Subject field" in OAuth protocols.
43
- */
44
- provider_subject: string;
45
- /**
46
- * The `type` field denotes the OAuth identity provider that the user has authenticated with, e.g. Google, Facebook, GitHub etc.
47
- */
48
- provider_type: string;
49
- /**
50
- * If available, the `profile_picture_url` is a url of the user's profile picture set in OAuth identity the provider that the user has authenticated with, e.g. Facebook profile picture.
51
- */
52
- profile_picture_url: string;
53
- /**
54
- * If available, the `locale` is the user's locale set in the OAuth identity provider that the user has authenticated with.
55
- */
56
- locale: string;
57
- /**
58
- * The `provider_values` object lists relevant identifiers, values, and scopes for a given OAuth provider.
59
- * For example this object will include a provider's `access_token` that you can use to access the provider's API for a given user.
60
- * Note that these values will vary based on the OAuth provider in question, e.g. `id_token` may not be returned by all providers.
61
- */
62
- provider_values: {
63
- /**
64
- * The `access_token` that you may use to access the user's data in the provider's API.
65
- */
66
- access_token: string;
67
- /**
68
- * The `id_token` returned by the OAuth provider.
69
- * ID Tokens are JWTs that contain structured information about a user.
70
- * The exact content of each ID Token varies from provider to provider.
71
- * ID Tokens are returned from OAuth providers that conform to the {@link https://openid.net/foundation/ OpenID Connect} specification, which is based on OAuth.
72
- */
73
- id_token: string;
74
- /**
75
- * The `refresh_token` that you may use to refresh a user's session within the provider's API.
76
- */
77
- refresh_token: string;
78
- /**
79
- * The OAuth scopes included for a given provider.
80
- * See each provider's section above to see which scopes are included by default and how to add custom scopes.
81
- */
82
- scopes: string[];
83
- /**
84
- * The timestamp when the Session expires.
85
- * Values conform to the RFC 3339 standard and are expressed in UTC, e.g. 2021-12-29T12:33:09Z.
86
- */
87
- expires_at: string;
88
- };
89
- };
90
- type OAuthStartFailureReason = 'User Canceled' | 'Authentication Failed' | 'Invalid Platform';
91
- type OAuthStartResponse = void | {
92
- success: true;
93
- } | {
94
- success: false;
95
- reason: OAuthStartFailureReason;
96
- error?: Error;
97
- };
98
- /**
99
- * Methods for interacting with an individual OAuth provider.
100
- */
101
- interface IOAuthProvider {
102
- /**
103
- * Start an OAuth flow by redirecting the browser to one of Stytch's {@link https://stytch.com/docs/api/oauth-google-start oauth start} endpoints.
104
- * If enabled, this method will also generate a PKCE code_verifier and store it in localstorage on the device (See the {@link https://stytch.com/docs/oauth#guides_pkce PKCE OAuth guide} for details).
105
- * If your application is configured to use a custom subdomain with Stytch, it will be used automatically.
106
- * @example
107
- * const loginWithGoogle = useCallback(()=> {
108
- * stytch.oauth.google.start({
109
- * login_redirect_url: 'https://example.com/oauth/callback',
110
- * signup_redirect_url: 'https://example.com/oauth/callback',
111
- * custom_scopes: ['https://www.googleapis.com/auth/gmail.compose']
112
- * })
113
- * }, [stytch]);
114
- * return (
115
- * <Button onClick={loginWithGoogle}> Log in! </Button>
116
- * );
117
- *
118
- * @param options - An {@link OAuthGetURLOptions} object
119
- *
120
- * @returns OAuthStartResponse - In browsers, the browser is redirected during this function call and will return void. You should not attempt to run any code after calling this function. In React Native applications, an external browser is opened, and this method will return the result of the browser/native authentication attempt.
121
- *
122
- * @throws A `StytchSDKUsageError` when called with invalid input.
123
- */
124
- start(options?: OAuthGetURLOptions): Promise<OAuthStartResponse>;
125
- }
126
- type OAuthAttachResponse = ResponseCommon & {
127
- oauth_attach_token: string;
128
- };
129
- interface IHeadlessOAuthClient<TProjectConfiguration extends StytchProjectConfigurationInput> {
130
- google: IOAuthProvider;
131
- microsoft: IOAuthProvider;
132
- apple: IOAuthProvider;
133
- github: IOAuthProvider;
134
- gitlab: IOAuthProvider;
135
- facebook: IOAuthProvider;
136
- discord: IOAuthProvider;
137
- salesforce: IOAuthProvider;
138
- slack: IOAuthProvider;
139
- amazon: IOAuthProvider;
140
- bitbucket: IOAuthProvider;
141
- linkedin: IOAuthProvider;
142
- coinbase: IOAuthProvider;
143
- twitch: IOAuthProvider;
144
- twitter: IOAuthProvider;
145
- tiktok: IOAuthProvider;
146
- snapchat: IOAuthProvider;
147
- figma: IOAuthProvider;
148
- yahoo: IOAuthProvider;
149
- /**
150
- * The authenticate method wraps the {@link https://stytch.com/docs/api/oauth-authenticate authenticate} OAuth API endpoint which validates the OAuth token passed in.
151
- *
152
- * @example
153
- * const token = new URLSearchParams(window.location.search).get('token');
154
- * stytch.oauth.authenticate(token, {
155
- * session_duration_minutes: 60
156
- * }).then(...)
157
- *
158
- * @param token - The token to authenticate
159
- * @param options - {@link OAuthAuthenticateOptions}
160
- *
161
- * @returns A {@link OAuthAuthenticateResponse} indicating the token has been authenticated.
162
- *
163
- * @throws A `StytchAPIError` when the Stytch API returns an error.
164
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
165
- * @throws A `StytchSDKUsageError` when called with invalid input.
166
- */
167
- authenticate(token: string, options: OAuthAuthenticateOptions): Promise<OAuthAuthenticateResponse<TProjectConfiguration>>;
168
- /**
169
- * The attach method wraps the {@link https://stytch.com/docs/api/oauth-attach attach} OAuth API endpoint and generates an OAuth Attach Token to pre-associate an OAuth flow with an existing Stytch User.
170
- *
171
- * You must have an active Stytch session to use this endpoint.
172
- * Pass the returned oauth_attach_token to the same provider's OAuth Start endpoint to treat this OAuth flow as a
173
- * login for that user instead of a signup
174
- *
175
- * @param provider - The OAuth provider's name.
176
- *
177
- * @returns A {@link OAuthAttachResponse} containing a single-use token for connecting the Stytch User selection from this request to the corresponding OAuth Start request.
178
- */
179
- attach(provider: string): Promise<OAuthAttachResponse>;
180
- }
181
-
182
- type UserOnChangeCallback = (user: User | null) => void;
183
- type UserUpdateOptions = {
184
- /**
185
- * The name of the user. If at least one name field is passed, all name fields will be updated.
186
- */
187
- name?: {
188
- /**
189
- * The first name of the user. Replaces an existing first name, if it exists.
190
- */
191
- first_name?: string;
192
- /**
193
- * The middle name(s) of the user. Replaces an existing middle name, if it exists.
194
- */
195
- middle_name?: string;
196
- /**
197
- * The last name of the user. Replaces an existing last name, if it exists.
198
- */
199
- last_name?: string;
200
- };
201
- /**
202
- * A JSON object containing application-specific metadata.
203
- * Use it to store fields that a user can be allowed to edit directly without backend validation - such as `display_theme` or `preferred_locale`.
204
- * See our {@link https://stytch.com/docs/api/metadata metadata reference} for complete details.
205
- */
206
- untrusted_metadata?: Record<string, unknown>;
207
- };
208
- type UserUpdateResponse = ResponseCommon & {
209
- /**
210
- * Globally unique UUID that identifies a specific user in the Stytch API.
211
- */
212
- user_id: string;
213
- /**
214
- * The updated emails for the user.
215
- */
216
- emails: User['emails'];
217
- /**
218
- * The updated phone numbers for the user.
219
- */
220
- phone_numbers: User['phone_numbers'];
221
- /**
222
- * The updated crypto wallets for the user.
223
- */
224
- crypto_wallets: User['crypto_wallets'];
225
- };
226
- type UserInfo = Cacheable<{
227
- /**
228
- * The user object, or null if no user exists.
229
- */
230
- user: User | null;
231
- }>;
232
- type UserGetConnectedAppsResponse = ResponseCommon & {
233
- connected_apps: {
234
- connected_app_id: string;
235
- name: string;
236
- description: string;
237
- client_type: string;
238
- logo_url?: string;
239
- scopes_granted: string;
240
- }[];
241
- };
242
- interface IHeadlessUserClient {
243
- /**
244
- * The asynchronous method, `user.get`, wraps the {@link https://stytch.com/docs/api/get-user get user} endpoint.
245
- * It fetches the user's data and refreshes the cached object if changes are detected.
246
- * The Stytch SDK will invoke this method automatically in the background, so you probably won't need to call this method directly.
247
- *
248
- * @returns A {@link User} object, or null if no user exists.
249
- *
250
- * @throws A `StytchAPIError` when the Stytch API returns an error.
251
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
252
- */
253
- get(): Promise<User>;
254
- /**
255
- * Wraps Stytch's {@link https://stytch.com/docs/api/update-user update user} endpoint. Use this method to change the user's name, untrusted metadata, and attributes.
256
- *
257
- * You can listen for successful user updates anywhere in the codebase with the `stytch.user.onChange()` method or `useStytchUser()` hook if you are using React.
258
- *
259
- * **Note:** If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
260
- *
261
- * @example
262
- * ```
263
- * const updateName = useCallback(() => {
264
- * stytchClient.user.update({
265
- * name: {
266
- * first_name: 'Jane',
267
- * last_name: 'Doe',
268
- * },
269
- * });
270
- * }, [stytchClient]);
271
- * ```
272
- *
273
- * @param options - {@link UserUpdateOptions}
274
- *
275
- * @returns A {@link UserUpdateResponse} indicating the user has been updated.
276
- *
277
- * @throws A `StytchAPIError` when the Stytch API returns an error.
278
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
279
- * @throws A `StytchSDKUsageError` when called with invalid input.
280
- */
281
- update(options: UserUpdateOptions): Promise<UserUpdateResponse>;
282
- /**
283
- * The `user.getSync` is a synchronous method for getting a user. This is the recommended approach. You can listen to changes with the `onChange` method.
284
- * If logged in, this returns the cached user object, otherwise it returns null. This method does not refresh the user's data.
285
- *
286
- * @returns A {@link User} object, or null if no user exists.
287
- *
288
- * @throws A `StytchAPIError` when the Stytch API returns an error.
289
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
290
- */
291
- getSync(): User | null;
292
- /**
293
- * The `user.getInfo` method is similar to `user.getSync`, but it returns an object containing the `user` object and a `fromCache` boolean.
294
- * If `fromCache` is true, the user object is from the cache and a state refresh is in progress.
295
- */
296
- getInfo(): UserInfo;
297
- /**
298
- * The `user.onChange` method takes in a callback that gets called whenever the user object changes. It returns an unsubscribe method for you to call when you no longer want to listen for such changes.
299
- *
300
- * In React, the `@stytch/react` library provides the `useStytchUser` hook that implements these methods for you to easily access the user and listen for changes.
301
- *
302
- * @param callback - Gets called whenever the user object changes. See {@link UserOnChangeCallback}.
303
- *
304
- * @returns An {@link UnsubscribeFunction} for you to call when you no longer want to listen for changes in the user object.
305
- *
306
- * @throws A `StytchAPIError` when the Stytch API returns an error.
307
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
308
- * @throws A `StytchSDKUsageError` when called with invalid input.
309
- */
310
- onChange(callback: UserOnChangeCallback): UnsubscribeFunction;
311
- /**
312
- * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-email delete user email} endpoint.
313
- * This methods cannot be used to remove all factors from a user. A user must have at least one email, phone number, or OAuth provider associated with their account at all times, otherwise they will not be able to log in again.
314
- * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
315
- *
316
- * @param emailId - ID of the email to be deleted.
317
- *
318
- * @returns A {@link DeleteResponse} that indicates the user email has been deleted.
319
- *
320
- * @throws A `StytchAPIError` when the Stytch API returns an error.
321
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
322
- * @throws A `StytchSDKUsageError` when called with invalid input.
323
- */
324
- deleteEmail(emailId: string): Promise<DeleteResponse>;
325
- /**
326
- * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-phone-number delete phone number} endpoint.
327
- * This methods cannot be used to remove all factors from a user. A user must have at least one email, phone number, or OAuth provider associated with their account at all times, otherwise they will not be able to log in again.
328
- * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
329
- *
330
- * @param phoneId - ID of the phone number to be deleted.
331
- *
332
- * @returns A {@link DeleteResponse} that indicates the user phone number has been deleted.
333
- *
334
- * @throws A `StytchAPIError` when the Stytch API returns an error.
335
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
336
- * @throws A `StytchSDKUsageError` when called with invalid input.
337
- */
338
- deletePhoneNumber(phoneId: string): Promise<DeleteResponse>;
339
- /**
340
- * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-totp delete TOTP} endpoint.
341
- * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
342
- *
343
- * @param totpId - ID of the TOTP registration to be deleted.
344
- *
345
- * @returns A {@link DeleteResponse} that indicates the user TOTP registration has been deleted.
346
- *
347
- * @throws A `StytchAPIError` when the Stytch API returns an error.
348
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
349
- * @throws A `StytchSDKUsageError` when called with invalid input.
350
- */
351
- deleteTOTP(totpId: string): Promise<DeleteResponse>;
352
- /**
353
- * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-oauth-registration delete OAuth} endpoint.
354
- * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
355
- *
356
- * @param oauthUserRegistrationId - ID of the OAuth registration to be deleted.
357
- *
358
- * @returns A {@link DeleteResponse} that indicates the user OAuth registration has been deleted.
359
- *
360
- * @throws A `StytchAPIError` when the Stytch API returns an error.
361
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
362
- * @throws A `StytchSDKUsageError` when called with invalid input.
363
- */
364
- deleteOAuthRegistration(oauthUserRegistrationId: string): Promise<DeleteResponse>;
365
- /**
366
- * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-crypto-wallet delete crypto wallet} endpoint.
367
- * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
368
- *
369
- * @param cryptoWalletId - ID of the crypto wallet to be deleted.
370
- *
371
- * @returns A {@link DeleteResponse} that indicates the user crypto wallet has been deleted.
372
- *
373
- * @throws A `StytchAPIError` when the Stytch API returns an error.
374
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
375
- * @throws A `StytchSDKUsageError` when called with invalid input.
376
- */
377
- deleteCryptoWallet(cryptoWalletId: string): Promise<DeleteResponse>;
378
- /**
379
- * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-webauthn-registration delete WebAuthn} endpoint.
380
- * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
381
- *
382
- * @param webAuthnId - ID of the WebAuthn registration to be deleted.
383
- *
384
- * @returns A {@link DeleteResponse} that indicates the user WebAuthn registration has been deleted.
385
- *
386
- * @throws A `StytchAPIError` when the Stytch API returns an error.
387
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
388
- * @throws A `StytchSDKUsageError` when called with invalid input.
389
- */
390
- deleteWebauthnRegistration(webAuthnId: string): Promise<DeleteResponse>;
391
- /**
392
- * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-biometric-registration delete biometric} endpoint.
393
- *
394
- * @param biometricRegistrationId - ID of the biometric registration to be deleted.
395
- *
396
- * @returns A {@link DeleteResponse} that indicates the user Biometric registration has been deleted.
397
- *
398
- * @throws A `StytchAPIError` when the Stytch API returns an error.
399
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
400
- * @throws A `StytchSDKUsageError` when called with invalid input.
401
- */
402
- deleteBiometricRegistration(biometricRegistrationId: string): Promise<DeleteResponse>;
403
- /**
404
- * The User Get Connected Apps method wraps the {@link https://stytch.com/docs/api/connected-app-user-get-all User Get Connected Apps} API endpoint.
405
- * The `user_id` will be automatically inferred from the logged-in user's session.
406
- *
407
- * This method retrieves a list of Connected Apps that the user has completed an authorization flow with successfully.
408
- * If the user revokes a Connected App's access (e.g. via the `revokeConnectedApp` method) then the Connected App will
409
- * no longer be returned in this endpoint's response.
410
- *
411
- * @returns A {@link UserGetConnectedAppsResponse} containing a list of the user's connected apps
412
- *
413
- * @throws A `StytchSDKAPIError` when the Stytch API returns an error.
414
- * @throws A `SDKAPIUnreachableError` when the SDK cannot contact the Stytch API.
415
- * @throws A `StytchSDKUsageError` when called with invalid input.
416
- */
417
- getConnectedApps(): Promise<UserGetConnectedAppsResponse>;
418
- /**
419
- * The User Revoke Connected App method wraps the {@link https://stytch.com/docs/api/connected-app-user-revoke User Revoke Connected App} API endpoint.
420
- * The `user_id` will be automatically inferred from the logged-in user's session.
421
- *
422
- * This method revokes a Connected App's access to the user and revokes all active tokens that have been
423
- * created on the user's behalf. New tokens cannot be created until the user completes a new authorization
424
- * flow with the Connected App.
425
- *
426
- * Note that after calling this method, the user will be forced to grant consent in subsequent authorization
427
- * flows with the Connected App.
428
- *
429
- * @param connectedAppId - ID of the Connected App to revoke.
430
- * @returns A {@link ResponseCommon} indicating that the Connected App's access has been revoked.
431
- *
432
- * @throws A `StytchSDKAPIError` when the Stytch API returns an error.
433
- * @throws A `SDKAPIUnreachableError` when the SDK cannot contact the Stytch API.
434
- * @throws A `StytchSDKUsageError` when called with invalid input.
435
- */
436
- revokedConnectedApp(connectedAppId: string): Promise<ResponseCommon>;
437
- }
438
-
439
- type TOTPCreateOptions = {
440
- /**
441
- * The expiration for the TOTP instance. If the newly created TOTP is not authenticated within this time frame the TOTP will be unusable. Defaults to 60 (1 hour) with a minimum of 5 and a maximum of 1440.
442
- */
443
- expiration_minutes: number;
444
- };
445
- type TOTPCreateResponse = ResponseCommon & {
446
- /**
447
- * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
448
- */
449
- totp_id: string;
450
- /**
451
- * The TOTP secret key shared between the authenticator app and the server used to generate TOTP codes.
452
- */
453
- secret: string;
454
- /**
455
- * The QR code image encoded in base64.
456
- */
457
- qr_code: string;
458
- /**
459
- * The recovery codes used to authenticate the user without an authenticator app.
460
- */
461
- recovery_codes: string[];
462
- };
463
- type TOTPAuthenticateOptions = SessionDurationOptions & {
464
- /**
465
- * The TOTP code to authenticate. The TOTP code should consist of 6 digits.
466
- */
467
- totp_code: string;
468
- };
469
- type TOTPAuthenticateResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
470
- /**
471
- * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
472
- */
473
- totp_id: string;
474
- /**
475
- * The device history of the user.
476
- */
477
- user_device?: SDKDeviceHistory;
478
- };
479
- type TOTPRecovery = {
480
- /**
481
- * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
482
- */
483
- totp_id: string;
484
- /**
485
- * Indicates whether or not the TOTP registration has been verified by the user.
486
- */
487
- verified: boolean;
488
- /**
489
- * The recovery codes for the TOTP registration.
490
- */
491
- recovery_codes: string[];
492
- };
493
- type TOTPRecoveryCodesResponse = ResponseCommon & {
494
- /**
495
- * Globally unique UUID that identifies a specific user in the Stytch API.
496
- */
497
- user_id: string;
498
- /**
499
- * See {@link TOTPRecovery}.
500
- */
501
- totps: TOTPRecovery;
502
- };
503
- type TOTPRecoverOptions = SessionDurationOptions & {
504
- /**
505
- * The recovery code to authenticate.
506
- */
507
- recovery_code: string;
508
- };
509
- type TOTPRecoverResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
510
- /**
511
- * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
512
- */
513
- totp_id: string;
514
- /**
515
- * The device history of the user.
516
- */
517
- user_device?: SDKDeviceHistory;
518
- };
519
- interface IHeadlessTOTPClient<TProjectConfiguration extends StytchProjectConfigurationInput> {
520
- /**
521
- * Wraps Stytch's {@link https://stytch.com/docs/api/totp-create Create} endpoint. Call this method to create a new TOTP instance for a user. The user can use the authenticator application of their choice to scan the QR code or enter the secret.
522
- *
523
- * You can listen for successful user updates anywhere in the codebase with the `stytch.user.onChange()` method or `useStytchUser()` hook if you are using React.
524
- *
525
- * **Note:** If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk/resources/mfa Multi-factor Authentication} section for more details.
526
- *
527
- * @example
528
- * ```
529
- * stytchClient.totps.create({ expiration_minutes: 60 });
530
- * ```
531
- *
532
- * @param options - {@link TOTPCreateOptions}
533
- *
534
- * @returns A {@link TOTPCreateResponse} indicating a new TOTP instance has been created.
535
- *
536
- * @throws A `StytchAPIError` when the Stytch API returns an error.
537
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
538
- * @throws A `StytchSDKUsageError` when called with invalid input.
539
- */
540
- create(options: TOTPCreateOptions): Promise<TOTPCreateResponse>;
541
- /**
542
- * Wraps Stytch's {@link https://stytch.com/docs/api/totp-authenticate Authenticate} endpoint. Call this method to authenticate a TOTP code entered by a user.
543
- *
544
- * @example
545
- * ```
546
- * stytch.totps.authenticate({ totp_code: '123456', session_duration_minutes: 60 });
547
- * ```
548
- *
549
- * @param options - {@link TOTPAuthenticateOptions}
550
- *
551
- * @returns A {@link TOTPAuthenticateResponse} indicating the TOTP code has been authenticated.
552
- *
553
- * @throws A `StytchAPIError` when the Stytch API returns an error.
554
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
555
- * @throws A `StytchSDKUsageError` when called with invalid input.
556
- */
557
- authenticate(options: TOTPAuthenticateOptions): Promise<TOTPAuthenticateResponse<TProjectConfiguration>>;
558
- /**
559
- * Wraps Stytch's {@link https://stytch.com/docs/api/totp-get-recovery-codes Recovery Codes} endpoint. Call this method to retrieve the recovery codes for a TOTP instance tied to a user.
560
- *
561
- * You can listen for successful user updates anywhere in the codebase with the `stytch.user.onChange()` method or `useStytchUser()` hook if you are using React.
562
- *
563
- * **Note:** If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk/resources/mfa Multi-factor authentication} section for more details.
564
- *
565
- * @example
566
- * ```
567
- * stytchClient.totps.recoveryCodes();
568
- * ```
569
- *
570
- * @returns A {@link TOTPRecoveryCodesResponse} containing the TOTP recovery codes tied to the user.
571
- *
572
- * @throws A `StytchAPIError` when the Stytch API returns an error.
573
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
574
- */
575
- recoveryCodes(): Promise<TOTPRecoveryCodesResponse>;
576
- /**
577
- * Wraps Stytch's {@link https://stytch.com/docs/api/totp-recover Recover} endpoint. Call this method to authenticate a recovery code for a TOTP instance.
578
- *
579
- * @example
580
- * ```
581
- * stytch.totps.recover({ recovery_code: 'xxxx-xxxx-xxxx', session_duration_minutes: 60 });
582
- * ```
583
- *
584
- * @param options - {@link TOTPRecoverOptions}
585
- *
586
- * @returns A {@link TOTPRecoverResponse} indicating the TOTP recovery code has been authenticated.
587
- *
588
- * @throws A `StytchAPIError` when the Stytch API returns an error.
589
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
590
- * @throws A `StytchSDKUsageError` when called with invalid input.
591
- */
592
- recover(options: TOTPRecoverOptions): Promise<TOTPRecoverResponse<TProjectConfiguration>>;
593
- }
594
-
595
- type BiometricsRegisterOptions = {
596
- /**
597
- * The text rendered when raising the biometric prompt.
598
- */
599
- prompt: string;
600
- /**
601
- * The text rendered on the cancel button when raising the biometric prompt. Defaults to "Cancel".
602
- */
603
- cancelButtonText?: string;
604
- /**
605
- * On Android devices, allow the private key data to be stored as cleartext in the application sandbox.
606
- */
607
- allowFallbackToCleartext?: boolean;
608
- /**
609
- * Allows user to enter their device credentials as a fallback for failed biometric authentication.
610
- */
611
- allowDeviceCredentials?: boolean;
612
- /**
613
- * Specify the desired session duration, in minutes
614
- */
615
- sessionDurationMinutes?: number;
616
- };
617
- type BiometricsRegisterStartResponse = ResponseCommon & {
618
- /**
619
- * A unique ID that identifies a specific biometric registration.
620
- */
621
- biometric_registration_id: string;
622
- /**
623
- * The challenge to be signed by the device.
624
- */
625
- challenge: string;
626
- };
627
- type BiometricsRegisterCompleteResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
628
- /**
629
- * A unique ID that identifies a specific biometric registration.
630
- */
631
- biometric_registration_id: string;
632
- };
633
- type BiometricsAuthenticateOptions = {
634
- /**
635
- * The text rendered when raising the biometric prompt.
636
- */
637
- prompt: string;
638
- /**
639
- * Set the session lifetime to be this many minutes from now.
640
- * This value must be a minimum of 5 and may not exceed the `maximum session duration minutes` value set in the {@link https://stytch.com/dashboard/sdk-configuration SDK Configuration} page of the Stytch dashboard.
641
- * A successful authentication will continue to extend the session this many minutes.
642
- */
643
- sessionDurationMinutes: number;
644
- /**
645
- * The text rendered on the cancel button when raising the biometric prompt. Defaults to "Cancel".
646
- */
647
- cancelButtonText?: string;
648
- /**
649
- * Allows user to enter their device credentials as a fallback for failed biometric authentication.
650
- */
651
- allowDeviceCredentials?: boolean;
652
- /**
653
- * The text rendered on the fallback prompt after biometrics has failed and allowDeviceCredentials is true. Defaults to "Enter Passcode". This only appears on iOS devices.
654
- */
655
- fallbackTitle?: string;
656
- };
657
- type BiometricsAuthenticateStartResponse = ResponseCommon & {
658
- /**
659
- * The challenge to be signed by the device.
660
- */
661
- challenge: string;
662
- /**
663
- * A unique ID that identifies a specific biometric registration.
664
- */
665
- biometric_registration_id: string;
666
- };
667
- type BiometricsAuthenticateCompleteResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
668
- /**
669
- * A unique ID that identifies a specific biometric registration.
670
- */
671
- biometric_registration_id: string;
672
- /**
673
- * The device history of the user.
674
- */
675
- user_device?: SDKDeviceHistory;
676
- };
677
- type BiometricsDeleteResponse = ResponseCommon & {
678
- /**
679
- * A unique ID that identifies a specific biometric registration.
680
- */
681
- biometric_registration_id: string;
682
- /**
683
- * Globally unique UUID that identifies a specific user in the Stytch API.
684
- */
685
- user_id: string;
686
- };
687
- /**
688
- * Type of biometric authentication available on the device. iOS supports 'TouchID' or 'FaceID', and Android supports 'Biometrics'.
689
- */
690
- type BiometryType = 'TouchID' | 'FaceID' | 'Biometrics';
691
- type BiometricsGetSensorResponse = {
692
- /**
693
- * Type of biometric authentication available on the device.
694
- */
695
- biometryType: BiometryType;
696
- };
697
- interface IHeadlessBiometricsClient<TProjectConfiguration extends StytchProjectConfigurationInput> {
698
- /**
699
- * Indicates if there is an existing biometric registration on the device.
700
- *
701
- * @returns true if there is a biometric registration on the device, otherwise false.
702
- */
703
- isRegistrationAvailable: () => Promise<boolean>;
704
- /**
705
- * Indicates whether or not the Keystore is available on the device.
706
- *
707
- * @returns true if the keystore is available, otherwise false.
708
- */
709
- isKeystoreAvailable: () => Promise<boolean>;
710
- /**
711
- * Adds a biometric registration for the current user.
712
- *
713
- * @param options - {@link BiometricsRegisterOptions}
714
- *
715
- * @returns A {@link BiometricsRegisterCompleteResponse} indicating the biometric registration has been successful.
716
- *
717
- * @throws A `StytchSDKError` when the Stytch React Native module returns an error.
718
- */
719
- register: (options: BiometricsRegisterOptions) => Promise<BiometricsRegisterCompleteResponse<TProjectConfiguration>>;
720
- /**
721
- * Updates the session by using a biometric registration.
722
- *
723
- * @param options - {@link BiometricsAuthenticateOptions}
724
- *
725
- * @returns A {@link BiometricsRegisterCompleteResponse} indicating the authentication has been successful.
726
- *
727
- * @throws A `StytchSDKError` when the Stytch React Native module returns an error.
728
- */
729
- authenticate: (options: BiometricsAuthenticateOptions) => Promise<BiometricsAuthenticateCompleteResponse<TProjectConfiguration>>;
730
- /**
731
- * Attempts to remove the biometric registration from the user and device.
732
- *
733
- * @returns A {@link BiometricsDeleteResponse} indicating whether the deletion has been successful.
734
- */
735
- removeRegistration: () => Promise<BiometricsDeleteResponse>;
736
- /**
737
- * Checks the type of biometrics that is available on the device.
738
- *
739
- * @param allowDeviceCredentials Allows user to enter their device credentials as a fallback for failed biometric authentication.
740
- *
741
- * @returns A {@link BiometricsGetSensorResponse} containing a {@link BiometryType}.
742
- *
743
- * @throws A `StytchSDKError` when the Stytch React Native module returns an error.
744
- */
745
- getSensor: (allowDeviceCredentials?: boolean) => Promise<BiometricsGetSensorResponse>;
746
- /**
747
- * Gets the current biometric_registration_id saved on device, if it exists
748
- */
749
- getBiometricRegistrationId: () => Promise<string | undefined>;
750
- /**
751
- * Deletes the local biometric keys from the device, if any
752
- *
753
- * @returns true if keys were found and deleted from the device, false if no keys were present
754
- */
755
- deleteDeviceRegistration: () => Promise<boolean>;
756
- }
757
-
758
- type ImpersonationAuthenticateOptions = {
759
- /**
760
- * The impersonation token used to authenticate a user
761
- */
762
- impersonation_token: string;
763
- };
764
- type ImpersonationAuthenticateResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration>;
765
- interface IHeadlessImpersonationClient<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> {
766
- /**
767
- * Wraps Stytch's {@link https://stytch.com/docs/api/authenticate-impersonation-token Authenticate Impersonation Token} endpoint.
768
- * The authenticate method wraps the consumer impersonation authenticate endpoint.
769
- *
770
- * @param data - {@link ImpersonationAuthenticateOptions}
771
- * @returns A {@link ImpersonationAuthenticateResponse} indicating that the token has been authenticated
772
- *
773
- * @throws A `StytchAPIError` when the Stytch API returns an error.
774
- * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
775
- * @throws A `StytchSDKUsageError` when called with invalid input (invalid token, invalid options, etc.)
776
- */
777
- authenticate(data: ImpersonationAuthenticateOptions): Promise<ImpersonationAuthenticateResponse<TProjectConfiguration>>;
778
- }
779
-
780
- type Actions<Actions extends string> = Record<Actions, boolean>;
781
- type ConsumerPermissionsMap<Permissions extends Record<string, string>> = {
782
- [ResourceID in keyof Permissions]: Actions<Permissions[ResourceID]>;
783
- };
784
- interface IHeadlessRBACClient {
785
- /**
786
- * The `isAuthorizedSync` method determines whether the logged-in user is allowed to perform the specified action on the specified resource.
787
- * Returns `true` if the user can perform the action, `false` otherwise.
788
- *
789
- * If the user is not logged in, or the RBAC policy has not been loaded, this method will always return false.
790
- * If the resource or action provided are not valid for the configured RBAC policy, this method will return false.
791
- * @example
792
- * const isAuthorized = stytch.rbac.isAuthorizedSync<Permissions>('document', 'image');
793
- */
794
- isAuthorizedSync(resourceId: string, action: string): boolean;
795
- /**
796
- * The `isAuthorized` method determines whether the logged-in user is allowed to perform the specified action on the specified resource.
797
- * It will return a Promise that resolves after the RBAC policy has been loaded. Returns `true` if the user can perform the action, `false` otherwise.
798
- *
799
- * If the user is not logged in, this method will always return false.
800
- * If the resource or action provided are not valid for the configured RBAC policy, this method will return false.
801
- *
802
- * @example
803
- * const isAuthorized = await stytch.rbac.isAuthorizedSync<Permissions>('document', 'image');
804
- */
805
- isAuthorized(resourceId: string, action: string): Promise<boolean>;
806
- /**
807
- * The `allPermissions` method returns the complete list of permissions assigned to the currently logged-in user. If the user is not logged in, all values will be `false`.
808
- *
809
- * As a best practice, authorization checks for sensitive actions should also occur on the backend.
810
- *
811
- * @example
812
- * type Permissions = {
813
- * document: 'create' | 'read' | 'write
814
- * image: 'create' | 'read'
815
- * }
816
- * const permissions = await stytch.rbac.allPermissions<Permissions>();
817
- * console.log(permissions.document.create) // true
818
- * console.log(permissions.image.create) // false
819
- * @returns A {@link ConsumerPermissionsMap} for the active member
820
- */
821
- allPermissions<Permissions extends Record<string, string>>(): Promise<ConsumerPermissionsMap<Permissions>>;
822
- }
823
-
824
- type OAuthAuthorizeStartOptions = {
825
- client_id: string;
826
- redirect_uri: string;
827
- response_type: string;
828
- scopes: string[];
829
- prompt?: string;
830
- };
831
- type OAuthAuthorizeStartResponse = ResponseCommon & {
832
- user_id: string;
833
- user: User;
834
- client: ConnectedAppPublic;
835
- consent_required: boolean;
836
- scope_results: ScopeResult[];
837
- };
838
- type OAuthAuthorizeSubmitOptions = {
839
- client_id: string;
840
- redirect_uri: string;
841
- response_type: string;
842
- scopes: string[];
843
- state?: string;
844
- nonce?: string;
845
- code_challenge?: string;
846
- consent_granted: boolean;
847
- prompt?: string;
848
- resource?: string[];
849
- };
850
- type OAuthAuthorizeSubmitResponse = ResponseCommon & {
851
- redirect_uri: string;
852
- authorization_code?: string;
853
- };
854
- type OAuthLogoutStartOptions = {
855
- client_id: string;
856
- post_logout_redirect_uri: string;
857
- state?: string;
858
- id_token_hint?: string;
859
- };
860
- type OAuthLogoutStartResponse = ResponseCommon & {
861
- redirect_uri: string;
862
- consent_required: boolean;
863
- };
864
- interface IHeadlessIDPClient {
865
- /**
866
- * Initiates a request for authorization of a Connected App to access a User's account.
867
- *
868
- * Call this endpoint using the query parameters from an OAuth Authorization request. This endpoint validates various fields (scope, client_id, redirect_uri, prompt, etc...) are correct and returns relevant information for rendering an OAuth Consent Screen.
869
- *
870
- * @param data - The options for the OAuth authorization flow.
871
- * @returns The response from the OAuth authorization flow.
872
- * @example
873
- * const response = await stytch.idp.oauthAuthorizeStart({
874
- * client_id: 'client_123',
875
- */
876
- oauthAuthorizeStart(data: OAuthAuthorizeStartOptions): Promise<OAuthAuthorizeStartResponse>;
877
- /**
878
- * Completes a request for authorization of a Connected App to access a Member's account.
879
- *
880
- * Call this endpoint using the query parameters from an OAuth Authorization request, after previously validating those parameters using the Preflight Check API. Note that this endpoint takes in a few additional parameters the preflight check does not- state, nonce, and code_challenge.
881
- *
882
- * If the authorization was successful, the redirect_uri will contain a valid authorization_code embedded as a query parameter. If the authorization was unsuccessful, the redirect_uri will contain an OAuth2.1 error_code. In both cases, redirect the Member to the location for the response to be consumed by the Connected App.
883
- *
884
- * Exactly one of the following must be provided to identify the Member granting authorization:
885
- * organization_id + member_id
886
- * session_token
887
- * session_jwt
888
- *
889
- * If a session_token or session_jwt is passed, the OAuth Authorization will be linked to the Member's session for tracking purposes. One of these fields must be used if the Connected App intends to complete the Exchange Access Token flow.
890
- *
891
- * @param data - The options for the OAuth authorization flow.
892
- * @returns The response from the OAuth authorization flow.
893
- * @example
894
- * const response = await stytch.idp.oauthAuthorizeSubmit({
895
- * client_id: 'client_123',
896
- * redirect_uri: 'https://example.com/callback',
897
- * scope: 'openid email profile',
898
- * });
899
- */
900
- oauthAuthorizeSubmit(data: OAuthAuthorizeSubmitOptions): Promise<OAuthAuthorizeSubmitResponse>;
901
- }
902
-
903
- type OAuthAuthorizeParams = {
904
- client_id: string;
905
- redirect_uri: string;
906
- response_type: string;
907
- scopes: string[];
908
- code_challenge?: string;
909
- state?: string;
910
- nonce?: string;
911
- prompt?: string;
912
- resources?: string[];
913
- };
914
- type OAuthLogoutParams = {
915
- client_id: string;
916
- post_logout_redirect_uri: string;
917
- id_token_hint?: string;
918
- state?: string;
919
- };
920
- /**
921
- * Parse the OAuth Authorize params from the URL search parameters to pass in to subsequent OAuthAuthorize calls.
922
- *
923
- * @param params - The URL search parameters to parse.
924
- * @returns The parsed OAuth Authorize parameters.
925
- */
926
- declare const parseOAuthAuthorizeParams: (params: URLSearchParams) => {
927
- error: string | null;
928
- result: OAuthAuthorizeParams;
929
- };
930
- declare const parseOAuthLogoutParams: (params: URLSearchParams) => {
931
- error: string | null;
932
- result: OAuthLogoutParams;
933
- };
934
-
935
- export { parseOAuthLogoutParams as k, parseOAuthAuthorizeParams as p };
936
- export type { TOTPAuthenticateOptions as A, TOTPAuthenticateResponse as B, TOTPRecoveryCodesResponse as C, TOTPRecoverOptions as D, TOTPRecoverResponse as E, BiometricsRegisterOptions as F, BiometricsRegisterStartResponse as G, BiometricsRegisterCompleteResponse as H, IHeadlessIDPClient as I, BiometricsAuthenticateOptions as J, BiometricsAuthenticateStartResponse as K, BiometricsAuthenticateCompleteResponse as L, BiometricsDeleteResponse as M, BiometryType as N, OAuthAuthorizeStartOptions as O, BiometricsGetSensorResponse as P, IHeadlessBiometricsClient as Q, ImpersonationAuthenticateOptions as R, ImpersonationAuthenticateResponse as S, TOTPCreateOptions as T, UserOnChangeCallback as U, ConsumerPermissionsMap as V, OAuthAuthorizeStartResponse as a, OAuthAuthorizeSubmitOptions as b, OAuthAuthorizeSubmitResponse as c, OAuthLogoutStartOptions as d, OAuthLogoutStartResponse as e, IHeadlessOAuthClient as f, IHeadlessUserClient as g, IHeadlessTOTPClient as h, IHeadlessImpersonationClient as i, IHeadlessRBACClient as j, OAuthAuthorizeParams as l, OAuthLogoutParams as m, OAuthGetURLOptions as n, OAuthAuthenticateOptions as o, OAuthAuthenticateResponse as q, OAuthStartFailureReason as r, OAuthStartResponse as s, IOAuthProvider as t, OAuthAttachResponse as u, UserUpdateOptions as v, UserUpdateResponse as w, UserInfo as x, UserGetConnectedAppsResponse as y, TOTPCreateResponse as z };