UNPKG

@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

69 lines (60 loc) 1.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Passage = void 0; var _index = require("./index.js"); var _index2 = require("./shared/index.js"); /** * 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); * ``` */ class Passage { /** * PassageApp class contains functions that operate on the Passage app level. */ /** * PassagePasskey class contains functions that use passkeys for authentication. */ /** * PassageMagicLink class contains functions that use magic links for authentication. */ /** * PassageOneTimePasscode class contains functions that use one-time passcodes for authentication. */ /** * PassageSocial class contains functions that use social providers for authentication. */ /** * PassageSocial class contains functions that use social providers for authentication. */ /** * The PassageSession class used to manage Passage sessions using refresh tokens. */ /** * The PassageCurrentUser class contains functions to get information about the currently authenticated user. */ /** * Constructor configuring the Passage class' attributes * @param {string} appId the App's corresponding AppId */ constructor(appId) { _index2.PassageReactNative.initWithAppId(appId); this.app = new _index.PassageApp(); this.passkey = new _index.PassagePasskey(); this.magicLink = new _index.PassageMagicLink(); this.oneTimePasscode = new _index.PassageOneTimePasscode(); this.social = new _index.PassageSocial(); this.hosted = new _index.PassageHosted(); this.tokenStore = new _index.PassageTokenStore(); this.currentUser = new _index.PassageCurrentUser(); } } exports.Passage = Passage; //# sourceMappingURL=Passage.js.map