UNPKG

@iterable/react-native-sdk

Version:
44 lines (41 loc) 1.02 kB
"use strict"; import { IterableApi } from "./IterableApi.js"; /** * Manages the authentication for the Iterable SDK. * * @example * ```typescript * const authManager = new IterableAuthManager(); * ``` */ export class IterableAuthManager { /** * Pause the authentication retry mechanism. * * @param pauseRetry - Whether to pause the authentication retry mechanism * * @example * ```typescript * const authManager = new IterableAuthManager(); * authManager.pauseAuthRetries(true); * ``` */ pauseAuthRetries(pauseRetry) { return IterableApi.pauseAuthRetries(pauseRetry); } /** * Pass along an auth token to the SDK. * * @param authToken - The auth token to pass along * * @example * ```typescript * const authManager = new IterableAuthManager(); * authManager.passAlongAuthToken(MY_AUTH_TOKEN); * ``` */ passAlongAuthToken(authToken) { return IterableApi.passAlongAuthToken(authToken); } } //# sourceMappingURL=IterableAuthManager.js.map