@rakomi/react-native 0.1.0 → 0.2.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.
- package/COMPLIANCE.md +36 -6
- package/README.md +247 -0
- package/SECURITY.md +1 -1
- package/THIRD-PARTY-NOTICES +1 -1
- package/dist/index.cjs +692 -13
- package/dist/index.d.cts +70 -6
- package/dist/index.d.ts +70 -6
- package/dist/index.js +693 -16
- package/dist/native/index.cjs +265 -0
- package/dist/native/index.d.cts +33 -3
- package/dist/native/index.d.ts +33 -3
- package/dist/native/index.js +261 -1
- package/dist/{expo-adapter-CtPCEgue.d.cts → passkey-adapter-D_Z3Z7lV.d.cts} +172 -2
- package/dist/{expo-adapter-CtPCEgue.d.ts → passkey-adapter-D_Z3Z7lV.d.ts} +172 -2
- package/package.json +3 -3
- package/sbom.cdx.json +17 -11
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AuthEvent, Locale, Translations, AuthMachineState, SignInOptions, SignInResult, TokenResult, AuthError, UserResource, HasParams, SwitchOrgResult, SessionResource, AuthConfig, BrandingConfig,
|
|
3
|
-
export { AuthError, AuthEvent, AuthMachineState, CryptoProvider, HasParams, HttpClient, KeyValueStore, Locale, MfaStepUpRequiredError, MfaStepUpUnavailableError, PkceChallenge, RegisterResult, SessionResource, SignInOptions, SignInResult, SwitchOrgResult, TokenResult, Translations, UserResource, base64url, createTranslator, decodeJwtPayload, decodeSession, decodeUser, generatePkce, getErrorMessage, hasPermission, hasRole, isSafeUrl, networkError, parseOAuthCallbackError, parseTokenEndpointError, scorePassword, selectPluralForm } from '@rakomi/sdk-core';
|
|
4
|
-
import { D as DpopProver, N as NativeAuthAdapter, T as TokenCache } from './
|
|
5
|
-
export { A as AppLifecycle, a as AppStateValue, b as AttestationVerifier, B as BackgroundTask, c as BiometricGate, d as BiometricResult, e as BrowserAuthSessionOptions, f as BrowserAuthSessionResult, C as ConnectivityProvider, g as CreateDefaultExpoAdapterOptions, h as CreateNativeDpopProverOptions, i as
|
|
2
|
+
import { AuthEvent, Locale, Translations, AuthMachineState, SignInOptions, SignInResult, TokenResult, AuthError, UserResource, HasParams, SwitchOrgResult, SessionResource, AuthConfig, BrandingConfig, OrgMembershipClaim, TranslationFn, OAuthTokenResponse, HttpClient, OpaqueUserHandle, PasskeyCeremonyAdapter, PasskeySummary, PasskeyError, AssertPasskeyResult, StepUpWithPasskeyResult, RegisterPasskeyResult, ListPasskeysResult, PasskeySummaryResult, DeletePasskeyResult, RequestResult, VerifyResult } from '@rakomi/sdk-core';
|
|
3
|
+
export { AssertPasskeyResult, AuthError, AuthEvent, AuthMachineState, CryptoProvider, DeletePasskeyResult, HasParams, HttpClient, KeyValueStore, ListPasskeysResult, Locale, MfaStepUpRequiredError, MfaStepUpUnavailableError, OpaqueUserHandle, PasskeyCeremonyAdapter, PasskeyError, PasskeyErrorCode, PasskeySummary, PasskeySummaryResult, PasskeyTokens, PkceChallenge, RegisterPasskeyResult, RegisterResult, SessionResource, SignInOptions, SignInResult, StepUpWithPasskeyResult, SwitchOrgResult, TokenResult, Translations, UserResource, base64url, createTranslator, decodeJwtPayload, decodeSession, decodeUser, generatePkce, getErrorMessage, hasPermission, hasRole, isSafeUrl, networkError, parseOAuthCallbackError, parseTokenEndpointError, scorePassword, selectPluralForm } from '@rakomi/sdk-core';
|
|
4
|
+
import { D as DpopProver, N as NativeAuthAdapter, T as TokenCache } from './passkey-adapter-D_Z3Z7lV.cjs';
|
|
5
|
+
export { A as AppLifecycle, a as AppStateValue, b as AttestationVerifier, B as BackgroundTask, c as BiometricGate, d as BiometricResult, e as BrowserAuthSessionOptions, f as BrowserAuthSessionResult, C as ConnectivityProvider, g as CreateDefaultExpoAdapterOptions, h as CreateNativeDpopProverOptions, i as CreateNativePasskeyAdapterOptions, j as DeepLinkProvider, k as DpopProofInput, l as NativeDpopModuleSpec, m as NativePasskeyCeremonyAdapter, n as NativePasskeyModuleSpec, P as ParClient, S as SystemBrowser, o as createDefaultExpoAdapter, p as createNativeDpopProver, q as createNativePasskeyAdapter } from './passkey-adapter-D_Z3Z7lV.cjs';
|
|
6
6
|
|
|
7
7
|
/** Reason a DPoP-requested session was downgraded to Bearer by the server. */
|
|
8
8
|
interface DpopDowngradeInfo {
|
|
@@ -212,6 +212,12 @@ interface UseFlagReturn<T = unknown> {
|
|
|
212
212
|
isEnabled: boolean;
|
|
213
213
|
}
|
|
214
214
|
declare function useFlag<T = unknown>(flag: string, options?: UseFlagOptions): UseFlagReturn<T>;
|
|
215
|
+
/** The active organization context, from the `org` scope's JWT claims. */
|
|
216
|
+
interface OrgContext {
|
|
217
|
+
orgId: string;
|
|
218
|
+
orgRole: string;
|
|
219
|
+
orgMemberships: OrgMembershipClaim[];
|
|
220
|
+
}
|
|
215
221
|
interface UseOrganizationReturn {
|
|
216
222
|
isLoaded: boolean;
|
|
217
223
|
organization: OrgContext | null;
|
|
@@ -219,7 +225,7 @@ interface UseOrganizationReturn {
|
|
|
219
225
|
declare function useOrganization(): UseOrganizationReturn;
|
|
220
226
|
interface UseOrganizationListReturn {
|
|
221
227
|
isLoaded: boolean;
|
|
222
|
-
organizations:
|
|
228
|
+
organizations: OrgMembershipClaim[];
|
|
223
229
|
}
|
|
224
230
|
declare function useOrganizationList(): UseOrganizationListReturn;
|
|
225
231
|
type LinkProvider = 'google' | 'github' | 'microsoft' | 'apple' | 'discord' | 'facebook' | 'slack' | 'twitter' | 'gitlab' | 'linkedin';
|
|
@@ -565,6 +571,64 @@ type SocialSignInOutcome = {
|
|
|
565
571
|
*/
|
|
566
572
|
declare function startSocialSignIn(input: StartSocialSignInInput): Promise<SocialSignInOutcome>;
|
|
567
573
|
|
|
574
|
+
interface UsePasskeysOptions {
|
|
575
|
+
/**
|
|
576
|
+
* Override the ceremony adapter. Intended for tests (`createFakePasskeyAdapter()` from
|
|
577
|
+
* `@rakomi/sdk-core/passkeys/testing`) and for a host that builds its adapter outside the provider.
|
|
578
|
+
* When omitted, the adapter comes from `nativeAdapter.passkeys`.
|
|
579
|
+
*/
|
|
580
|
+
adapter?: PasskeyCeremonyAdapter;
|
|
581
|
+
}
|
|
582
|
+
interface SignInWithPasskeyInput {
|
|
583
|
+
/**
|
|
584
|
+
* Identified sign-in. **An opaque, server-issued handle — NOT an email, NOT a username.** The type is
|
|
585
|
+
* branded (`OpaqueUserHandle`), so a raw string will not compile: passing a user-typed identifier here
|
|
586
|
+
* turns a usernameless flow into an account-enumeration oracle, and — because platform passkeys sync
|
|
587
|
+
* across a user's devices — can reveal which of their devices hold a credential. Omit it for the
|
|
588
|
+
* usernameless flow, which is what almost every app wants.
|
|
589
|
+
*/
|
|
590
|
+
userHandle?: OpaqueUserHandle;
|
|
591
|
+
}
|
|
592
|
+
interface RegisterPasskeyHookInput {
|
|
593
|
+
/** Minted by `stepUpWithPasskey()` or by the password step-up endpoint. */
|
|
594
|
+
stepUpToken: string;
|
|
595
|
+
nickname?: string;
|
|
596
|
+
}
|
|
597
|
+
interface ListPasskeysHookInput {
|
|
598
|
+
stepUpToken: string;
|
|
599
|
+
}
|
|
600
|
+
interface RenamePasskeyHookInput {
|
|
601
|
+
stepUpToken: string;
|
|
602
|
+
passkeyId: string;
|
|
603
|
+
nickname: string;
|
|
604
|
+
}
|
|
605
|
+
interface DeletePasskeyHookInput {
|
|
606
|
+
stepUpToken: string;
|
|
607
|
+
passkeyId: string;
|
|
608
|
+
}
|
|
609
|
+
interface UsePasskeysResult {
|
|
610
|
+
/** `null` until the capability probe resolves. `false` means this device cannot run a ceremony. */
|
|
611
|
+
isSupported: boolean | null;
|
|
612
|
+
/** `null` until probed, and `null` also means UNKNOWN (a module that cannot answer). A UI hint for
|
|
613
|
+
* wording ("Sign in with Face ID"), never a gate. */
|
|
614
|
+
hasPlatformAuthenticator: boolean | null;
|
|
615
|
+
/** `undefined` until `listPasskeys` is called — the hook fetches nothing on mount. */
|
|
616
|
+
passkeys: PasskeySummary[] | undefined;
|
|
617
|
+
error: PasskeyError | null;
|
|
618
|
+
isSigningIn: boolean;
|
|
619
|
+
isRegistering: boolean;
|
|
620
|
+
isSteppingUp: boolean;
|
|
621
|
+
isLoading: boolean;
|
|
622
|
+
isMutating: boolean;
|
|
623
|
+
signInWithPasskey: (input?: SignInWithPasskeyInput) => Promise<AssertPasskeyResult>;
|
|
624
|
+
stepUpWithPasskey: () => Promise<StepUpWithPasskeyResult>;
|
|
625
|
+
registerPasskey: (input: RegisterPasskeyHookInput) => Promise<RegisterPasskeyResult>;
|
|
626
|
+
listPasskeys: (input: ListPasskeysHookInput) => Promise<ListPasskeysResult>;
|
|
627
|
+
renamePasskey: (input: RenamePasskeyHookInput) => Promise<PasskeySummaryResult>;
|
|
628
|
+
deletePasskey: (input: DeletePasskeyHookInput) => Promise<DeletePasskeyResult>;
|
|
629
|
+
}
|
|
630
|
+
declare function usePasskeys(options?: UsePasskeysOptions): UsePasskeysResult;
|
|
631
|
+
|
|
568
632
|
/**
|
|
569
633
|
* `useSubmitOAuthTokens` — bridge between `startSocialSignIn` (free function) and the
|
|
570
634
|
* `<RakomiProvider>` runtime.
|
|
@@ -631,4 +695,4 @@ interface UseMfaResult {
|
|
|
631
695
|
}
|
|
632
696
|
declare function useMfa(): UseMfaResult;
|
|
633
697
|
|
|
634
|
-
export { type AuthState, type CreateDpopSessionOptions, type CreateRnHttpClientOptions, DEFAULT_WEBHOOK_TOLERANCE, type DpopDowngradeInfo, DpopProver, type DpopRefreshError, type DpopRefreshErrorClass, type DpopRefreshResult, DpopSession, Feature, type FeatureProps, type LinkProvider, type LinkedMethod, type LinkedMethods, type LinkedVia, MAX_WEBHOOK_TOLERANCE, NativeAuthAdapter, Protect, type ProtectProps, type PublisherEventType, type PublisherWebhookEvent, type PublisherWebhookEventType, type PublisherWebhookVerifyData, RakomiProvider, type RakomiProviderProps, SignIn, type SignInProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, type SocialSignInOutcome, type StartSocialSignInInput, TokenCache, type UseAnonymousSigninResult, type UseAuthConfigReturn, type UseBaasPlansReturn, type UseBaasSubscriptionReturn, type UseBrandingReturn, type UseEmailOtpResult, type UseFlagOptions, type UseFlagReturn, type UseLinkedAccountsResult, type UseMagicLinkResult, type UseMfaResult, type UseOrganizationListReturn, type UseOrganizationReturn, type UseRegisterResult, type UseSessionReturn, type UseUserReturn, UserButton, type UserButtonProps, UserProfile, type UserProfileProps, type WebhookVerifyErrorClass, type WebhookVerifyResult, createDpopSession, createRnHttpClient, startSocialSignIn, useAnonymousSignin, useAuth, useAuthConfig, useBaasPlans, useBaasSubscription, useBranding, useEmailOtp, useFlag, useLinkedAccounts, useMagicLink, useMfa, useOrganization, useOrganizationList, useRegister, useSession, useSubmitOAuthTokens, useTranslation, useUser, verifyPublisherWebhook, verifyWebhook };
|
|
698
|
+
export { type AuthState, type CreateDpopSessionOptions, type CreateRnHttpClientOptions, DEFAULT_WEBHOOK_TOLERANCE, type DeletePasskeyHookInput, type DpopDowngradeInfo, DpopProver, type DpopRefreshError, type DpopRefreshErrorClass, type DpopRefreshResult, DpopSession, Feature, type FeatureProps, type LinkProvider, type LinkedMethod, type LinkedMethods, type LinkedVia, type ListPasskeysHookInput, MAX_WEBHOOK_TOLERANCE, NativeAuthAdapter, Protect, type ProtectProps, type PublisherEventType, type PublisherWebhookEvent, type PublisherWebhookEventType, type PublisherWebhookVerifyData, RakomiProvider, type RakomiProviderProps, type RegisterPasskeyHookInput, type RenamePasskeyHookInput, SignIn, type SignInProps, type SignInWithPasskeyInput, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, type SocialSignInOutcome, type StartSocialSignInInput, TokenCache, type UseAnonymousSigninResult, type UseAuthConfigReturn, type UseBaasPlansReturn, type UseBaasSubscriptionReturn, type UseBrandingReturn, type UseEmailOtpResult, type UseFlagOptions, type UseFlagReturn, type UseLinkedAccountsResult, type UseMagicLinkResult, type UseMfaResult, type UseOrganizationListReturn, type UseOrganizationReturn, type UsePasskeysOptions, type UsePasskeysResult, type UseRegisterResult, type UseSessionReturn, type UseUserReturn, UserButton, type UserButtonProps, UserProfile, type UserProfileProps, type WebhookVerifyErrorClass, type WebhookVerifyResult, createDpopSession, createRnHttpClient, startSocialSignIn, useAnonymousSignin, useAuth, useAuthConfig, useBaasPlans, useBaasSubscription, useBranding, useEmailOtp, useFlag, useLinkedAccounts, useMagicLink, useMfa, useOrganization, useOrganizationList, usePasskeys, useRegister, useSession, useSubmitOAuthTokens, useTranslation, useUser, verifyPublisherWebhook, verifyWebhook };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AuthEvent, Locale, Translations, AuthMachineState, SignInOptions, SignInResult, TokenResult, AuthError, UserResource, HasParams, SwitchOrgResult, SessionResource, AuthConfig, BrandingConfig,
|
|
3
|
-
export { AuthError, AuthEvent, AuthMachineState, CryptoProvider, HasParams, HttpClient, KeyValueStore, Locale, MfaStepUpRequiredError, MfaStepUpUnavailableError, PkceChallenge, RegisterResult, SessionResource, SignInOptions, SignInResult, SwitchOrgResult, TokenResult, Translations, UserResource, base64url, createTranslator, decodeJwtPayload, decodeSession, decodeUser, generatePkce, getErrorMessage, hasPermission, hasRole, isSafeUrl, networkError, parseOAuthCallbackError, parseTokenEndpointError, scorePassword, selectPluralForm } from '@rakomi/sdk-core';
|
|
4
|
-
import { D as DpopProver, N as NativeAuthAdapter, T as TokenCache } from './
|
|
5
|
-
export { A as AppLifecycle, a as AppStateValue, b as AttestationVerifier, B as BackgroundTask, c as BiometricGate, d as BiometricResult, e as BrowserAuthSessionOptions, f as BrowserAuthSessionResult, C as ConnectivityProvider, g as CreateDefaultExpoAdapterOptions, h as CreateNativeDpopProverOptions, i as
|
|
2
|
+
import { AuthEvent, Locale, Translations, AuthMachineState, SignInOptions, SignInResult, TokenResult, AuthError, UserResource, HasParams, SwitchOrgResult, SessionResource, AuthConfig, BrandingConfig, OrgMembershipClaim, TranslationFn, OAuthTokenResponse, HttpClient, OpaqueUserHandle, PasskeyCeremonyAdapter, PasskeySummary, PasskeyError, AssertPasskeyResult, StepUpWithPasskeyResult, RegisterPasskeyResult, ListPasskeysResult, PasskeySummaryResult, DeletePasskeyResult, RequestResult, VerifyResult } from '@rakomi/sdk-core';
|
|
3
|
+
export { AssertPasskeyResult, AuthError, AuthEvent, AuthMachineState, CryptoProvider, DeletePasskeyResult, HasParams, HttpClient, KeyValueStore, ListPasskeysResult, Locale, MfaStepUpRequiredError, MfaStepUpUnavailableError, OpaqueUserHandle, PasskeyCeremonyAdapter, PasskeyError, PasskeyErrorCode, PasskeySummary, PasskeySummaryResult, PasskeyTokens, PkceChallenge, RegisterPasskeyResult, RegisterResult, SessionResource, SignInOptions, SignInResult, StepUpWithPasskeyResult, SwitchOrgResult, TokenResult, Translations, UserResource, base64url, createTranslator, decodeJwtPayload, decodeSession, decodeUser, generatePkce, getErrorMessage, hasPermission, hasRole, isSafeUrl, networkError, parseOAuthCallbackError, parseTokenEndpointError, scorePassword, selectPluralForm } from '@rakomi/sdk-core';
|
|
4
|
+
import { D as DpopProver, N as NativeAuthAdapter, T as TokenCache } from './passkey-adapter-D_Z3Z7lV.js';
|
|
5
|
+
export { A as AppLifecycle, a as AppStateValue, b as AttestationVerifier, B as BackgroundTask, c as BiometricGate, d as BiometricResult, e as BrowserAuthSessionOptions, f as BrowserAuthSessionResult, C as ConnectivityProvider, g as CreateDefaultExpoAdapterOptions, h as CreateNativeDpopProverOptions, i as CreateNativePasskeyAdapterOptions, j as DeepLinkProvider, k as DpopProofInput, l as NativeDpopModuleSpec, m as NativePasskeyCeremonyAdapter, n as NativePasskeyModuleSpec, P as ParClient, S as SystemBrowser, o as createDefaultExpoAdapter, p as createNativeDpopProver, q as createNativePasskeyAdapter } from './passkey-adapter-D_Z3Z7lV.js';
|
|
6
6
|
|
|
7
7
|
/** Reason a DPoP-requested session was downgraded to Bearer by the server. */
|
|
8
8
|
interface DpopDowngradeInfo {
|
|
@@ -212,6 +212,12 @@ interface UseFlagReturn<T = unknown> {
|
|
|
212
212
|
isEnabled: boolean;
|
|
213
213
|
}
|
|
214
214
|
declare function useFlag<T = unknown>(flag: string, options?: UseFlagOptions): UseFlagReturn<T>;
|
|
215
|
+
/** The active organization context, from the `org` scope's JWT claims. */
|
|
216
|
+
interface OrgContext {
|
|
217
|
+
orgId: string;
|
|
218
|
+
orgRole: string;
|
|
219
|
+
orgMemberships: OrgMembershipClaim[];
|
|
220
|
+
}
|
|
215
221
|
interface UseOrganizationReturn {
|
|
216
222
|
isLoaded: boolean;
|
|
217
223
|
organization: OrgContext | null;
|
|
@@ -219,7 +225,7 @@ interface UseOrganizationReturn {
|
|
|
219
225
|
declare function useOrganization(): UseOrganizationReturn;
|
|
220
226
|
interface UseOrganizationListReturn {
|
|
221
227
|
isLoaded: boolean;
|
|
222
|
-
organizations:
|
|
228
|
+
organizations: OrgMembershipClaim[];
|
|
223
229
|
}
|
|
224
230
|
declare function useOrganizationList(): UseOrganizationListReturn;
|
|
225
231
|
type LinkProvider = 'google' | 'github' | 'microsoft' | 'apple' | 'discord' | 'facebook' | 'slack' | 'twitter' | 'gitlab' | 'linkedin';
|
|
@@ -565,6 +571,64 @@ type SocialSignInOutcome = {
|
|
|
565
571
|
*/
|
|
566
572
|
declare function startSocialSignIn(input: StartSocialSignInInput): Promise<SocialSignInOutcome>;
|
|
567
573
|
|
|
574
|
+
interface UsePasskeysOptions {
|
|
575
|
+
/**
|
|
576
|
+
* Override the ceremony adapter. Intended for tests (`createFakePasskeyAdapter()` from
|
|
577
|
+
* `@rakomi/sdk-core/passkeys/testing`) and for a host that builds its adapter outside the provider.
|
|
578
|
+
* When omitted, the adapter comes from `nativeAdapter.passkeys`.
|
|
579
|
+
*/
|
|
580
|
+
adapter?: PasskeyCeremonyAdapter;
|
|
581
|
+
}
|
|
582
|
+
interface SignInWithPasskeyInput {
|
|
583
|
+
/**
|
|
584
|
+
* Identified sign-in. **An opaque, server-issued handle — NOT an email, NOT a username.** The type is
|
|
585
|
+
* branded (`OpaqueUserHandle`), so a raw string will not compile: passing a user-typed identifier here
|
|
586
|
+
* turns a usernameless flow into an account-enumeration oracle, and — because platform passkeys sync
|
|
587
|
+
* across a user's devices — can reveal which of their devices hold a credential. Omit it for the
|
|
588
|
+
* usernameless flow, which is what almost every app wants.
|
|
589
|
+
*/
|
|
590
|
+
userHandle?: OpaqueUserHandle;
|
|
591
|
+
}
|
|
592
|
+
interface RegisterPasskeyHookInput {
|
|
593
|
+
/** Minted by `stepUpWithPasskey()` or by the password step-up endpoint. */
|
|
594
|
+
stepUpToken: string;
|
|
595
|
+
nickname?: string;
|
|
596
|
+
}
|
|
597
|
+
interface ListPasskeysHookInput {
|
|
598
|
+
stepUpToken: string;
|
|
599
|
+
}
|
|
600
|
+
interface RenamePasskeyHookInput {
|
|
601
|
+
stepUpToken: string;
|
|
602
|
+
passkeyId: string;
|
|
603
|
+
nickname: string;
|
|
604
|
+
}
|
|
605
|
+
interface DeletePasskeyHookInput {
|
|
606
|
+
stepUpToken: string;
|
|
607
|
+
passkeyId: string;
|
|
608
|
+
}
|
|
609
|
+
interface UsePasskeysResult {
|
|
610
|
+
/** `null` until the capability probe resolves. `false` means this device cannot run a ceremony. */
|
|
611
|
+
isSupported: boolean | null;
|
|
612
|
+
/** `null` until probed, and `null` also means UNKNOWN (a module that cannot answer). A UI hint for
|
|
613
|
+
* wording ("Sign in with Face ID"), never a gate. */
|
|
614
|
+
hasPlatformAuthenticator: boolean | null;
|
|
615
|
+
/** `undefined` until `listPasskeys` is called — the hook fetches nothing on mount. */
|
|
616
|
+
passkeys: PasskeySummary[] | undefined;
|
|
617
|
+
error: PasskeyError | null;
|
|
618
|
+
isSigningIn: boolean;
|
|
619
|
+
isRegistering: boolean;
|
|
620
|
+
isSteppingUp: boolean;
|
|
621
|
+
isLoading: boolean;
|
|
622
|
+
isMutating: boolean;
|
|
623
|
+
signInWithPasskey: (input?: SignInWithPasskeyInput) => Promise<AssertPasskeyResult>;
|
|
624
|
+
stepUpWithPasskey: () => Promise<StepUpWithPasskeyResult>;
|
|
625
|
+
registerPasskey: (input: RegisterPasskeyHookInput) => Promise<RegisterPasskeyResult>;
|
|
626
|
+
listPasskeys: (input: ListPasskeysHookInput) => Promise<ListPasskeysResult>;
|
|
627
|
+
renamePasskey: (input: RenamePasskeyHookInput) => Promise<PasskeySummaryResult>;
|
|
628
|
+
deletePasskey: (input: DeletePasskeyHookInput) => Promise<DeletePasskeyResult>;
|
|
629
|
+
}
|
|
630
|
+
declare function usePasskeys(options?: UsePasskeysOptions): UsePasskeysResult;
|
|
631
|
+
|
|
568
632
|
/**
|
|
569
633
|
* `useSubmitOAuthTokens` — bridge between `startSocialSignIn` (free function) and the
|
|
570
634
|
* `<RakomiProvider>` runtime.
|
|
@@ -631,4 +695,4 @@ interface UseMfaResult {
|
|
|
631
695
|
}
|
|
632
696
|
declare function useMfa(): UseMfaResult;
|
|
633
697
|
|
|
634
|
-
export { type AuthState, type CreateDpopSessionOptions, type CreateRnHttpClientOptions, DEFAULT_WEBHOOK_TOLERANCE, type DpopDowngradeInfo, DpopProver, type DpopRefreshError, type DpopRefreshErrorClass, type DpopRefreshResult, DpopSession, Feature, type FeatureProps, type LinkProvider, type LinkedMethod, type LinkedMethods, type LinkedVia, MAX_WEBHOOK_TOLERANCE, NativeAuthAdapter, Protect, type ProtectProps, type PublisherEventType, type PublisherWebhookEvent, type PublisherWebhookEventType, type PublisherWebhookVerifyData, RakomiProvider, type RakomiProviderProps, SignIn, type SignInProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, type SocialSignInOutcome, type StartSocialSignInInput, TokenCache, type UseAnonymousSigninResult, type UseAuthConfigReturn, type UseBaasPlansReturn, type UseBaasSubscriptionReturn, type UseBrandingReturn, type UseEmailOtpResult, type UseFlagOptions, type UseFlagReturn, type UseLinkedAccountsResult, type UseMagicLinkResult, type UseMfaResult, type UseOrganizationListReturn, type UseOrganizationReturn, type UseRegisterResult, type UseSessionReturn, type UseUserReturn, UserButton, type UserButtonProps, UserProfile, type UserProfileProps, type WebhookVerifyErrorClass, type WebhookVerifyResult, createDpopSession, createRnHttpClient, startSocialSignIn, useAnonymousSignin, useAuth, useAuthConfig, useBaasPlans, useBaasSubscription, useBranding, useEmailOtp, useFlag, useLinkedAccounts, useMagicLink, useMfa, useOrganization, useOrganizationList, useRegister, useSession, useSubmitOAuthTokens, useTranslation, useUser, verifyPublisherWebhook, verifyWebhook };
|
|
698
|
+
export { type AuthState, type CreateDpopSessionOptions, type CreateRnHttpClientOptions, DEFAULT_WEBHOOK_TOLERANCE, type DeletePasskeyHookInput, type DpopDowngradeInfo, DpopProver, type DpopRefreshError, type DpopRefreshErrorClass, type DpopRefreshResult, DpopSession, Feature, type FeatureProps, type LinkProvider, type LinkedMethod, type LinkedMethods, type LinkedVia, type ListPasskeysHookInput, MAX_WEBHOOK_TOLERANCE, NativeAuthAdapter, Protect, type ProtectProps, type PublisherEventType, type PublisherWebhookEvent, type PublisherWebhookEventType, type PublisherWebhookVerifyData, RakomiProvider, type RakomiProviderProps, type RegisterPasskeyHookInput, type RenamePasskeyHookInput, SignIn, type SignInProps, type SignInWithPasskeyInput, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, type SocialSignInOutcome, type StartSocialSignInInput, TokenCache, type UseAnonymousSigninResult, type UseAuthConfigReturn, type UseBaasPlansReturn, type UseBaasSubscriptionReturn, type UseBrandingReturn, type UseEmailOtpResult, type UseFlagOptions, type UseFlagReturn, type UseLinkedAccountsResult, type UseMagicLinkResult, type UseMfaResult, type UseOrganizationListReturn, type UseOrganizationReturn, type UsePasskeysOptions, type UsePasskeysResult, type UseRegisterResult, type UseSessionReturn, type UseUserReturn, UserButton, type UserButtonProps, UserProfile, type UserProfileProps, type WebhookVerifyErrorClass, type WebhookVerifyResult, createDpopSession, createRnHttpClient, startSocialSignIn, useAnonymousSignin, useAuth, useAuthConfig, useBaasPlans, useBaasSubscription, useBranding, useEmailOtp, useFlag, useLinkedAccounts, useMagicLink, useMfa, useOrganization, useOrganizationList, usePasskeys, useRegister, useSession, useSubmitOAuthTokens, useTranslation, useUser, verifyPublisherWebhook, verifyWebhook };
|