@passageidentity/passage-react-native
Version:
Passkey Complete for React Native - Go completely passwordless with a standalone auth solution in your React Native app with Passage by 1Password
51 lines • 1.79 kB
TypeScript
import { PassageApp, PassageCurrentUser, PassageHosted, PassageMagicLink, PassageOneTimePasscode, PassagePasskey, PassageSocial, PassageTokenStore } from '.';
/**
* The Passage class used to perform register and login operations.
* The only parameter is the app handle for the application.
*
* @example
* ```
* import Passage from '@passageidentity/passage-react-native';
* const passage = new Passage(app_id);
* ```
*/
export declare class Passage {
/**
* PassageApp class contains functions that operate on the Passage app level.
*/
app: PassageApp;
/**
* PassagePasskey class contains functions that use passkeys for authentication.
*/
passkey: PassagePasskey;
/**
* PassageMagicLink class contains functions that use magic links for authentication.
*/
magicLink: PassageMagicLink;
/**
* PassageOneTimePasscode class contains functions that use one-time passcodes for authentication.
*/
oneTimePasscode: PassageOneTimePasscode;
/**
* PassageSocial class contains functions that use social providers for authentication.
*/
social: PassageSocial;
/**
* PassageSocial class contains functions that use social providers for authentication.
*/
hosted: PassageHosted;
/**
* The PassageSession class used to manage Passage sessions using refresh tokens.
*/
tokenStore: PassageTokenStore;
/**
* The PassageCurrentUser class contains functions to get information about the currently authenticated user.
*/
currentUser: PassageCurrentUser;
/**
* Constructor configuring the Passage class' attributes
* @param {string} appId the App's corresponding AppId
*/
constructor(appId: string);
}
//# sourceMappingURL=Passage.d.ts.map