{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-ad-azure-auth@1.0.6/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,SAAU,gBACV,YAAa,mBACX,aAAgB,kCAiBV,MAAM,UACjB,WAAA,CAAY,EAAU,CAAC,GACnB,SAAS,CACL,WAAY,CACR,SAAU,CAAE,UAAU,IAE1B,UAAU,GACX,GAEH,MAAM,OAAE,EAAS,SAAQ,aAAE,EAAY,SAAE,EAAQ,YAAE,EAAW,gBAAE,EAAe,cAAC,KAAkB,GAAW,EAE7G,KAAK,KAAO,IAAI,KAAK,CAAC,aAAe,GAA8B,qCAAqC,iBACpG,WACA,cACA,kBACA,mBACG,IAEP,KAAK,QAAU,IAAI,QAAQ,KAAK,MAChC,KAAK,QAAU,CACnB","file":"/npm/react-native-ad-azure-auth@1.0.6/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-ad-azure-auth@1.0.6/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import Auth from './auth'\nimport WebAuth from './webauth'\nimport { validate } from './utils/validate'\n\n/**\n   * AzureAuth for React Native client\n   *\n   * @param {Object} options your AzureAuth client information\n   * @param {String} options.clientId your AzureAuth client identifier. __ALL other params are optional!__\n   * @param {boolean} options.persistentCache do you want to store token cache between the app starts. Defaults to true.\n   * @param {String} options.authorityUrl optional Azure authority if you want to replace default v2 endpoint\n   *    (`https://login.microsoftonline.com/${tenant}/oauth2/v2.0/`)\n   * @param {String} options.tenant - uses given tenant in the default authority URL. Default is `common`\n   * @param {String} options.redirectUri - uses given redirect URI instead of default one:\n   *    iOS: {YOUR_BUNDLE_IDENTIFIER}://${YOUR_BUNDLE_IDENTIFIER}/ios/callback\n   *    Android: {YOUR_APP_PACKAGE_NAME}://{YOUR_APP_PACKAGE_NAME}/android/callback\n   *\n   * @class AzureAuth\n   */\nexport default class AzureAuth {\n    constructor(options = {}) {\n        validate({\n            parameters: {\n                clientId: { required: true },\n            },\n            validate: false // not declared params are allowed\n        }, options)\n        \n        const { tenant = 'common', authorityUrl, clientId, redirectUri, persistentCache,SAMLlogoutUrl, ...extras } = options\n        \n        this.auth = new Auth({authorityUrl: (authorityUrl ? authorityUrl : `https://login.microsoftonline.com/${tenant}/oauth2/v2.0/`),\n            clientId,\n            redirectUri,\n            persistentCache,\n            SAMLlogoutUrl,\n            ...extras})\n            \n        this.webAuth = new WebAuth(this.auth)\n        this.options = options\n    }\n}\n"]}