UNPKG

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

Version:

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

62 lines (57 loc) 2.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IosMetaData = exports.IOSMetaDataImpl = void 0; var _Version = require("./Version"); /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ /** * The object containing information about Nevis Mobile Authentication SDK for iOS. */ class IosMetaData { /** * The current version of Nevis Mobile Authentication SDK for iOS. */ /** * The {@link https://docs.nevis.net/mobilesdk/guide/configuration#facet-id | facet ID} used by * Nevis Mobile Authentication SDK for iOS. * * The facet ID of your application has to match the list of allowed facets stored provided by * the facet service of the backend. */ /** * Default constructor for {@link IosMetaData}. * * @param mobileAuthenticationVersion the current version of Nevis Mobile Authentication SDK for iOS. * @param applicationFacetId the facet ID used by Nevis Mobile Authentication SDK for iOS. * @returns an {@link IosMetaData} instance. */ static create(mobileAuthenticationVersion, applicationFacetId) { return new IOSMetaDataImpl(mobileAuthenticationVersion, applicationFacetId); } /** * Alternate constructor that creates a {@link IosMetaData} from a json. * * @param json contains the source for instance creation. * @returns a {@link IosMetaData} instance. */ static fromJson(json) { return IOSMetaDataImpl.fromJson(json); } } exports.IosMetaData = IosMetaData; class IOSMetaDataImpl extends IosMetaData { constructor(mobileAuthenticationVersion, applicationFacetId) { super(); this.mobileAuthenticationVersion = mobileAuthenticationVersion; this.applicationFacetId = applicationFacetId; } static fromJson(json) { const mobileAuthenticationVersion = _Version.Version.fromJson(json.mobileAuthenticationVersion); return new IOSMetaDataImpl(mobileAuthenticationVersion, json.applicationFacetId); } } exports.IOSMetaDataImpl = IOSMetaDataImpl; //# sourceMappingURL=IosMetaData.js.map