UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

50 lines (47 loc) 1.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MobileAuthenticationClientImpl = void 0; var _LocalData = require("./localData/LocalData"); var _Operations = require("./operations/Operations"); /** * Copyright © 2023 Nevis Security AG. All rights reserved. */ /** * The `MobileAuthenticationClient` interface represents the entry point to the SDK. Your * application should generally create an application scoped `MobileAuthenticationClient` instance, * by passing in a {@link Configuration} to the {@link MobileAuthenticationClientInitializer} that * specifies the `MobileAuthenticationClient` behavior. The configuration defines the URLs used to * perform operations with a NEVIS Mobile Authentication backend. * * To create the `MobileAuthenticationClient`, assuming that the {@link Configuration} has already been * created, here is an example using {@link MobileAuthenticationClientInitializer} to setup the SDK * during application startup: * * ```ts * async function createMobileAuthenticationClient( * configuration: Configuration * ): Promise<void> { * await new MobileAuthenticationClientInitializer() * .configuration(configuration) * .onSuccess((client) => { * // handle the MobileAuthenticationClient * }) * .onError((_error) => { * // handle error * }) * .execute(); * } * ``` */ class MobileAuthenticationClientImpl { get operations() { return new _Operations.OperationsImpl(); } get localData() { return new _LocalData.LocalDataImpl(); } } exports.MobileAuthenticationClientImpl = MobileAuthenticationClientImpl; //# sourceMappingURL=MobileAuthenticationClient.js.map