diff --git a/.version b/.version index 686bba9a..7422eeba 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v4.4.0 \ No newline at end of file +v4.5.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 156f5422..e885a3e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## [v4.5.0](https://github.com/auth0/react-native-auth0/tree/v4.5.0) (2025-04-17) + +[Full Changelog](https://github.com/auth0/react-native-auth0/compare/v4.4.0...v4.5.0) + +**Added** + +- Update dependencies and enhance webAuth methods to support HTTPS [\#1125](https://github.com/auth0/react-native-auth0/pull/1125) ([subhankarmaiti](https://github.com/subhankarmaiti)) +- feat: add optional timeout prop to Auth0Provider for authentication requests [\#1124](https://github.com/auth0/react-native-auth0/pull/1124) ([subhankarmaiti](https://github.com/subhankarmaiti)) +- Updated Readme recommending App links [\#1094](https://github.com/auth0/react-native-auth0/pull/1094) ([pmathew92](https://github.com/pmathew92)) +- Added deviceCredentialFallback default value [\#1098](https://github.com/auth0/react-native-auth0/pull/1098) ([subhankarmaiti](https://github.com/subhankarmaiti)) + ## [v4.4.0](https://github.com/auth0/react-native-auth0/tree/v4.4.0) (2025-02-19) [Full Changelog](https://github.com/auth0/react-native-auth0/compare/v4.3.0...v4.4.0) diff --git a/docs/.nojekyll b/docs/.nojekyll deleted file mode 100644 index e2ac6616..00000000 --- a/docs/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..355cf6d9 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,662 @@ +**react-native-auth0** + +--- + +![react-native-auth0](https://cdn.auth0.com/website/sdks/banners/react-native-auth0-banner.png) + +[![Build Status][circleci-image]][circleci-url] +[![NPM version][npm-image]][npm-url] +[![Coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Freact-native-auth0.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Freact-native-auth0?ref=badge_shield) + +📚 [Documentation](#documentation) • 🚀 [Getting Started](#getting-started) • ⏭️ [Next Steps](#next-steps) • ❓ [FAQs](https://github.com/auth0/react-native-auth0/blob/master/FAQ.md) • ❓ [Feedback](#feedback) + +### ⚠️ Important Migration Notice: v4.0.0 + +We're excited to announce the release of react-native-auth0 `v4.0.0`! Please note that this update includes breaking changes that require your attention. To ensure a smooth transition, please review our +👉 [Migration Guide](https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md) 👈 for detailed instructions on updating your integration. + +## Documentation + +- [Quickstart](https://auth0.com/docs/quickstart/native/react-native/interactive) +- [Expo Quickstart](https://auth0.com/docs/quickstart/native/react-native-expo/interactive) +- [Sample App](https://github.com/auth0-samples/auth0-react-native-sample/tree/master/00-Login-Hooks) +- [Expo Sample App](https://github.com/auth0-samples/auth0-react-native-sample/tree/master/00-Login-Expo) +- [FAQs](https://github.com/auth0/react-native-auth0/blob/master/FAQ.md) +- [Examples](https://github.com/auth0/react-native-auth0/blob/master/EXAMPLES.md) +- [Docs Site](https://auth0.github.io/react-native-auth0/) + +## Getting Started + +### Requirements + +This SDK targets apps that are using React Native SDK version `0.65.0` and up. If you're using an older React Native version, see the compatibility matrix below. + +### Platform compatibility + +The following shows platform minimums for running projects with this SDK: + +| Platform | Minimum version | +| -------- | :-------------: | +| iOS | 13.0 | +| Android | 34 | + +Our SDK requires a minimum iOS deployment target of 13.0. In your project's ios/Podfile, ensure your platform target is set to 13.0. + +``` +platform :ios, '13.0' +``` + +### Installation + +First install the native library module: + +### With [npm](https://www.npmjs.com) + +`$ npm install react-native-auth0 --save` + +### With [Yarn](https://yarnpkg.com/en/) + +`$ yarn add react-native-auth0` + +Then, you need to run the following command to install the ios app pods with Cocoapods. That will auto-link the iOS library: + +`$ cd ios && pod install` + +### Configure the SDK + +You need to make your Android, iOS or Expo applications aware that an authentication result will be received from the browser. This SDK makes use of the Android's Package Name and its analogous iOS's Product Bundle Identifier to generate the redirect URL. Each platform has its own set of instructions. + +#### Android + +> Before version 2.9.0, this SDK required you to add an intent filter to the Activity on which you're going to receive the authentication result, and to use the `singleTask` **launchMode** in that activity. To migrate your app to version 2.9.0+, **remove both** and continue with the instructions below. +> You can also check out a sample migration diff [here](https://github.com/auth0-samples/auth0-react-native-sample/commit/69f79c83ceed40f44b239bbd16e79ecaa70ef70a). + +Open your app's `build.gradle` file (typically at `android/app/build.gradle`) and add the following manifest placeholders: + +```groovy +android { + defaultConfig { + // Add the next line + manifestPlaceholders = [auth0Domain: "YOUR_AUTH0_DOMAIN", auth0Scheme: "${applicationId}.auth0"] + } + ... +} +``` + +The `auth0Domain` value must be replaced with your Auth0 domain value. So if you have `samples.us.auth0.com` as your Auth0 domain you would have a configuration like the following: + +```groovy +android { + defaultConfig { + manifestPlaceholders = [auth0Domain: "samples.us.auth0.com", auth0Scheme: "${applicationId}.auth0"] + } + ... +} +``` + +The `applicationId` value will be auto-replaced at runtime with the package name or ID of your application (e.g. `com.example.app`). You can change this value from the `build.gradle` file. You can also check it at the top of your `AndroidManifest.xml` file. + +> Note that if your Android application is using [product flavors](https://developer.android.com/studio/build/build-variants#product-flavors), you might need to specify different manifest placeholders for each flavor. + +If you use a value other than `applicationId` in `auth0Scheme` you will also need to pass it as the `customScheme` option parameter of the `authorize` and `clearSession` methods. + +Take note of this value as you'll be requiring it to define the callback URLs below. + +> For more info please read the [React Native docs](https://facebook.github.io/react-native/docs/linking.html). + +##### Skipping the Web Authentication setup + +If you don't plan to use Web Authentication, you will notice that the compiler will still prompt you to provide the `manifestPlaceholders` values, since the `RedirectActivity` included in this library will require them, and the Gradle tasks won't be able to run without them. + +Re-declare the activity manually with `tools:node="remove"` in your app's Android Manifest in order to make the manifest merger remove it from the final manifest file. Additionally, one more unused activity can be removed from the final APK by using the same process. A complete snippet to achieve this is: + +```xml + + + +``` + +#### iOS + +Inside the `ios` folder find the file `AppDelegate.[swift|m]` add the following to it: + +```objc +#import + +- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url + options:(NSDictionary *)options +{ + return [RCTLinkingManager application:app openURL:url options:options]; +} +``` + +Inside the `ios` folder open the `Info.plist` and locate the value for `CFBundleIdentifier`, e.g. + +```xml +CFBundleIdentifier +$(PRODUCT_BUNDLE_IDENTIFIER) +``` + +and then below it register a URL type entry using the value of `CFBundleIdentifier` as the value for `CFBundleURLSchemes`: + +```xml +CFBundleURLTypes + + + CFBundleTypeRole + None + CFBundleURLName + auth0 + CFBundleURLSchemes + + $(PRODUCT_BUNDLE_IDENTIFIER).auth0 + + + +``` + +If your application is generated using the React Native CLI, the default value of `$(PRODUCT_BUNDLE_IDENTIFIER)` matches `org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)`. Take note of this value as you'll be requiring it to define the callback URLs below. If desired, you can change its value using XCode in the following way: + +- Open the `ios/TestApp.xcodeproj` file replacing 'TestApp' with the name of your app or run `xed ios` from a Terminal. +- Open your project's or desired target's **Build Settings** tab and on the search bar at the right type "Product Bundle Identifier". +- Replace the **Product Bundle Identifier** value with your desired application's bundle identifier name (e.g. `com.example.app`). +- If you've changed the project wide settings, make sure the same were applied to each of the targets your app has. + +If you use a value other than `$(PRODUCT_BUNDLE_IDENTIFIER)` in the `CFBundleURLSchemes` field of the `Info.plist` you will also need to pass it as the `customScheme` option parameter of the `authorize` and `clearSession` methods. + +> For more info please read the [React Native docs](https://facebook.github.io/react-native/docs/linking.html). + +#### Expo + +> :warning: This SDK is not compatible with "Expo Go" app because of custom native code. It is compatible with Custom Dev Client and EAS builds + +To use the SDK with Expo, configure the app at build time by providing the `domain` and the `customScheme` values through the [Config Plugin](https://docs.expo.dev/guides/config-plugins/). To do this, add the following snippet to _app.json_ or _app.config.js_: + +```json +{ + "expo": { + ... + "plugins": [ + [ + "react-native-auth0", + { + "domain": "YOUR_AUTH0_DOMAIN", + "customScheme": "YOUR_CUSTOM_SCHEME" + } + ] + ] + } +} +``` + +> :info: If you want to switch between multiple domains in your app, refer [here](https://github.com/auth0/react-native-auth0/blob/master/EXAMPLES.md#domain-switching) + +| API | Description | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| domain | Mandatory: Provide the Auth0 domain that can be found at the [Application Settings](https://manage.auth0.com/#/applications) | +| customScheme | Optional: Custom scheme to build the callback URL with. The value provided here should be passed to the `customScheme` option parameter of the `authorize` and `clearSession` methods. The custom scheme should be a unique, all lowercase value with no special characters. | + +Now you can run the application using `expo run:android` or `expo run:ios`. + +### Callback URL(s) + +Callback URLs are the URLs that Auth0 invokes after the authentication process. Auth0 routes your application back to this URL and appends additional parameters to it, including a token. Since callback URLs can be manipulated, you will need to add this URL to your Application's **Allowed Callback URLs** for security. This will enable Auth0 to recognize these URLs as valid. If omitted, authentication will not be successful. + +On the Android platform this URL is case-sensitive. Because of that, this SDK will auto convert the Bundle Identifier (iOS) and Application ID (Android) values to lowercase in order to build the Callback URL with them. If any of these values contains uppercase characters a warning message will be printed in the console. Make sure to check that the right Callback URL is whitelisted in the Auth0 dashboard or the browser will not route successfully back to your application. + +Go to the [Auth0 Dashboard](https://manage.auth0.com/#/applications), select your application and make sure that **Allowed Callback URLs** contains the URLs defined below. + +If in addition you plan to use the log out method, you must also add these URLs to the **Allowed Logout URLs**. + +> [!NOTE] +> Whenever possible, Auth0 recommends using [Android App Links](https://developer.android.com/training/app-links) and [Apple Universal Links](https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content) for your callback and logout URLs. Custom URL schemes can be subject to [client impersonation attacks](https://datatracker.ietf.org/doc/html/rfc8252#section-8.6). +> +> 💡 If your Android app is using [product flavors](https://developer.android.com/studio/build/build-variants#product-flavors), you might need to specify different manifest placeholders for each flavor. + +#### Android + +##### Custom Scheme + +```text +{YOUR_APP_PACKAGE_NAME}.auth0://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback +``` + +##### App Link (Recommended): + +```text +https://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback +``` + +> Replace {YOUR_APP_PACKAGE_NAME} and {YOUR_AUTH0_DOMAIN} with your actual application package name and Auth0 domain. Ensure that {YOUR_APP_PACKAGE_NAME} is all lowercase. + +To enable App Links, set the `auth0Scheme` to `https` in your `build.gradle` file. + +```text +android { + defaultConfig { + manifestPlaceholders = [auth0Domain: "@string/com_auth0_domain", auth0Scheme: "https"] + } +} +``` + +This configuration ensures that your app uses https for the callback URL scheme, which is required for Android App Links. + +#### Enable Android App Links Support + +[Android App Links](https://developer.android.com/training/app-links) allow an application to designate itself as the default handler of a given type of link. For example, clicking a URL in an email would open the link in the designated application. This guide will show you how to enable Android App links support for your Auth0-registered application using Auth0's Dashboard. + +1. Go to [Auth0 Dashboard > Applications > Applications](https://manage.auth0.com/#/applications), and select the name of the application to view. + +2. Scroll to the bottom of the Settings page, and select **Show Advanced Settings**. +3. Select Device Settings, provide the [App Package Name and](https://developer.android.com/studio/build/application-id) the SHA256 fingerprints of your app’s signing certificate for your Android application, and select Save Changes. + ![android-app-link](_media/android-app-link.png) + +> You can use the following command to generate the fingerprint using the Java keytool in your terminal: `keytool -list -v -keystore my-release-key.keystore` + +To learn more about signing certificates, see Android's [Sign Your App](https://developer.android.com/studio/publish/app-signing.html) developer documentation. + +#### iOS + +##### Custom Scheme + +```text +{PRODUCT_BUNDLE_IDENTIFIER}.auth0://{YOUR_AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback +``` + +##### Universal Link (Recommended): + +```text +https://{YOUR_AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback +``` + +> Replace `{PRODUCT_BUNDLE_IDENTIFIER}` and `{YOUR_AUTH0_DOMAIN}` with your actual product bundle identifier and Auth0 domain. Ensure that {PRODUCT_BUNDLE_IDENTIFIER} is all lowercase. + +#### Configure an associated domain for iOS + +> [!IMPORTANT] +> This step requires a paid Apple Developer account. It is needed to use Universal Links as callback and logout URLs. +> Skip this step to use a custom URL scheme instead. + +##### Configure the Team ID and bundle identifier + +Scroll to the end of the settings page of your Auth0 application and open **Advanced Settings > Device Settings**. In the **iOS** section, set **Team ID** to your [Apple Team ID](https://developer.apple.com/help/account/manage-your-team/locate-your-team-id/), and **App ID** to your app's bundle identifier. + +![Screenshot of the iOS section inside the Auth0 application settings page](https://github.com/auth0/Auth0.swift/assets/5055789/7eb5f6a2-7cc7-4c70-acf3-633fd72dc506) + +This will add your app to your Auth0 tenant's `apple-app-site-association` file. + +##### Add the associated domain capability + +In Xcode, go to the **Signing and Capabilities** [tab](https://developer.apple.com/documentation/xcode/adding-capabilities-to-your-app#Add-a-capability) of your app's target settings, and press the **+ Capability** button. Then select **Associated Domains**. + +![Screenshot of the capabilities library inside Xcode](https://github.com/auth0/Auth0.swift/assets/5055789/3f7b0a70-c36c-46bf-9441-29f98724204a) + +Next, add the following [entry](https://developer.apple.com/documentation/xcode/configuring-an-associated-domain#Define-a-service-and-its-associated-domain) under **Associated Domains**: + +```text +webcredentials:YOUR_AUTH0_DOMAIN +``` + +
+ Example + +If your Auth0 Domain were `example.us.auth0.com`, then this value would be: + +```text +webcredentials:example.us.auth0.com +``` + +
+ +If you have a [custom domain](https://auth0.com/docs/customize/custom-domains), replace `YOUR_AUTH0_DOMAIN` with your custom domain. + +> [!NOTE] +> For the associated domain to work, your app must be signed with your team certificate **even when building for the iOS simulator**. Make sure you are using the Apple Team whose Team ID is configured in the settings page of your Auth0 application. + +Refer to the example of [Using custom scheme for web authentication redirection](https://github.com/auth0/react-native-auth0/blob/master/EXAMPLES.md#using-custom-scheme-for-web-authentication-redirection) + +## Next Steps + +> This SDK is OIDC compliant. To ensure OIDC compliant responses from the Auth0 servers enable the **OIDC Conformant** switch in your Auth0 dashboard under `Application / Settings / Advanced OAuth`. For more information please check [this documentation](https://auth0.com/docs/api-auth/intro#how-to-use-the-new-flows). + +### Web Authentication + +The SDK exports a React hook as the primary interface for performing [web authentication](#web-authentication) through the browser using Auth0 [Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login). + +Use the methods from the `useAuth0` hook to implement login, logout, and to retrieve details about the authenticated user. + +See the [API Documentation](https://auth0.github.io/react-native-auth0/functions/useAuth0.html) for full details on the `useAuth0` hook. + +First, import the `Auth0Provider` component and wrap it around your application. Provide the `domain` and `clientId` values as given to you when setting up your Auth0 app in the dashboard: + +```js +import { Auth0Provider } from 'react-native-auth0'; + +const App = () => { + return ( + + {/* YOUR APP */} + + ); +}; + +export default App; +``` + +
+ Using the `Auth0` class + +If you're not using React Hooks, you can simply instantiate the `Auth0` class: + +```js +import Auth0 from 'react-native-auth0'; + +const auth0 = new Auth0({ + domain: 'YOUR_AUTH0_DOMAIN', + clientId: 'YOUR_AUTH0_CLIENT_ID', +}); +``` + +
+ +Then import the hook into a component where you want to get access to the properties and methods for integrating with Auth0: + +```js +import { useAuth0 } from 'react-native-auth0'; +``` + +#### Login + +Use the `authorize` method to redirect the user to the Auth0 [Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login) page for authentication. If `scope` is not specified, `openid profile email` is used by default. + +- The `isLoading` property is set to true once the authentication state of the user is known to the SDK. +- The `user` property is populated with details about the authenticated user. If `user` is `null`, no user is currently authenticated. +- The `error` property is populated if any error occurs. + +```js +const Component = () => { + const { authorize, user, isLoading, error } = useAuth0(); + + const login = async () => { + await authorize(); + }; + + if (isLoading) { + return ( + + SDK is Loading + + ); + } + + return ( + + {!user && - - - - - -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- propTypes: - {
    children: Validator<ReactElementLike>;
    clientId: Validator<string>;
    domain: Validator<string>;
} -
-
-

Type declaration

-
    -
  • -
    - children: Validator<ReactElementLike> -
    -
  • -
  • -
    - clientId: Validator<string> -
    -
  • -
  • -
    - domain: Validator<string> -
    -
  • -
-
- -
-
- -
- - -
- -
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/functions/Auth0Provider.md b/docs/functions/Auth0Provider.md new file mode 100644 index 00000000..cc92dcd7 --- /dev/null +++ b/docs/functions/Auth0Provider.md @@ -0,0 +1,31 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / Auth0Provider + +# Function: Auth0Provider() + +> **Auth0Provider**(`__namedParameters`): `Element` + +Defined in: [hooks/auth0-provider.tsx:74](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/hooks/auth0-provider.tsx#L74) + +Provides the Auth0Context to its child components. + +## Parameters + +### \_\_namedParameters + +`PropsWithChildren`\<\{ `clientId`: `string`; `domain`: `string`; `localAuthenticationOptions`: [`LocalAuthenticationOptions`](../interfaces/LocalAuthenticationOptions.md); `timeout`: `number`; \}\> + +## Returns + +`Element` + +## Example + +```ts + + + +``` diff --git a/docs/functions/useAuth0.html b/docs/functions/useAuth0.html deleted file mode 100644 index aa8b148c..00000000 --- a/docs/functions/useAuth0.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - useAuth0 | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Function useAuth0

-
-
-
    - -
  • -
    -

    - Use the useAuth0 in your function components to - access authentication state and methods. -

    -
    -

    - Returns - Auth0ContextInterface<User> -

    -

    The useAuth0 hook interface

    -
    const {
    // State
    error,
    user,
    isLoading,
    // Methods
    authorize,
    sendSMSCode,
    authorizeWithSMS,
    sendEmailCode,
    authorizeWithEmail,
    sendMultifactorChallenge,
    authorizeWithOOB,
    authorizeWithOTP,
    authorizeWithRecoveryCode,
    hasValidCredentials,
    clearSession,
    getCredentials,
    clearCredentials,
    requireLocalAuthentication,
    authorizeWithPasswordRealm,
    authorizeWithExchangeNativeSocial,
    revokeRefreshToken
    } = useAuth0(); -
    -

    - Refer to - Auth0ContextInterface - on how to use the above methods. -

    -
    - -
  • -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/functions/useAuth0.md b/docs/functions/useAuth0.md new file mode 100644 index 00000000..71980f42 --- /dev/null +++ b/docs/functions/useAuth0.md @@ -0,0 +1,48 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / useAuth0 + +# Function: useAuth0() + +> **useAuth0**(): [`Auth0ContextInterface`](../Types/interfaces/Auth0ContextInterface.md)\<[`User`](../type-aliases/User.md)\> + +Defined in: [hooks/use-auth0.ts:38](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/hooks/use-auth0.ts#L38) + +Use the `useAuth0` in your function components to access authentication state and methods. + +## Returns + +[`Auth0ContextInterface`](../Types/interfaces/Auth0ContextInterface.md)\<[`User`](../type-aliases/User.md)\> + +The useAuth0 hook interface + +```ts +const { + // State + error, + user, + isLoading, + // Methods + authorize, + sendSMSCode, + authorizeWithSMS, + sendEmailCode, + authorizeWithEmail, + sendMultifactorChallenge, + authorizeWithOOB, + authorizeWithOTP, + authorizeWithRecoveryCode, + hasValidCredentials, + clearSession, + getCredentials, + clearCredentials, + requireLocalAuthentication, + authorizeWithPasswordRealm, + authorizeWithExchangeNativeSocial, + revokeRefreshToken, +} = useAuth0(); +``` + +Refer to [Auth0ContextInterface](../Types/interfaces/Auth0ContextInterface.md) on how to use the above methods. diff --git a/docs/globals.md b/docs/globals.md new file mode 100644 index 00000000..67683c63 --- /dev/null +++ b/docs/globals.md @@ -0,0 +1,62 @@ +[**react-native-auth0**](README.md) + +--- + +# react-native-auth0 + +## Modules + +- [Types](Types/README.md) + +## Enumerations + +- [LocalAuthenticationLevel](enumerations/LocalAuthenticationLevel.md) +- [LocalAuthenticationStrategy](enumerations/LocalAuthenticationStrategy.md) +- [SafariViewControllerPresentationStyle](enumerations/SafariViewControllerPresentationStyle.md) + +## Classes + +- [default](classes/default.md) +- [TimeoutError](classes/TimeoutError.md) + +## Interfaces + +- [AuthorizeUrlOptions](interfaces/AuthorizeUrlOptions.md) +- [ClearSessionOptions](interfaces/ClearSessionOptions.md) +- [ClearSessionParameters](interfaces/ClearSessionParameters.md) +- [CreateUserOptions](interfaces/CreateUserOptions.md) +- [ExchangeNativeSocialOptions](interfaces/ExchangeNativeSocialOptions.md) +- [ExchangeOptions](interfaces/ExchangeOptions.md) +- [GetUserOptions](interfaces/GetUserOptions.md) +- [LocalAuthenticationOptions](interfaces/LocalAuthenticationOptions.md) +- [LoginWithEmailOptions](interfaces/LoginWithEmailOptions.md) +- [LoginWithOOBOptions](interfaces/LoginWithOOBOptions.md) +- [LoginWithOTPOptions](interfaces/LoginWithOTPOptions.md) +- [LoginWithRecoveryCodeOptions](interfaces/LoginWithRecoveryCodeOptions.md) +- [LoginWithSMSOptions](interfaces/LoginWithSMSOptions.md) +- [LogoutUrlOptions](interfaces/LogoutUrlOptions.md) +- [MultifactorChallengeOptions](interfaces/MultifactorChallengeOptions.md) +- [PasswordlessWithEmailOptions](interfaces/PasswordlessWithEmailOptions.md) +- [PasswordlessWithSMSOptions](interfaces/PasswordlessWithSMSOptions.md) +- [PasswordRealmOptions](interfaces/PasswordRealmOptions.md) +- [PatchUserOptions](interfaces/PatchUserOptions.md) +- [RefreshTokenOptions](interfaces/RefreshTokenOptions.md) +- [ResetPasswordOptions](interfaces/ResetPasswordOptions.md) +- [RevokeOptions](interfaces/RevokeOptions.md) +- [UserInfoOptions](interfaces/UserInfoOptions.md) +- [WebAuthorizeOptions](interfaces/WebAuthorizeOptions.md) +- [WebAuthorizeParameters](interfaces/WebAuthorizeParameters.md) + +## Type Aliases + +- [Credentials](type-aliases/Credentials.md) +- [MultifactorChallengeOOBResponse](type-aliases/MultifactorChallengeOOBResponse.md) +- [MultifactorChallengeOOBWithBindingResponse](type-aliases/MultifactorChallengeOOBWithBindingResponse.md) +- [MultifactorChallengeOTPResponse](type-aliases/MultifactorChallengeOTPResponse.md) +- [MultifactorChallengeResponse](type-aliases/MultifactorChallengeResponse.md) +- [User](type-aliases/User.md) + +## Functions + +- [Auth0Provider](functions/Auth0Provider.md) +- [useAuth0](functions/useAuth0.md) diff --git a/docs/hierarchy.html b/docs/hierarchy.html deleted file mode 100644 index 2e82cacc..00000000 --- a/docs/hierarchy.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-

react-native-auth0

-

Class Hierarchy

- - -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index a7198081..00000000 --- a/docs/index.html +++ /dev/null @@ -1,1388 +0,0 @@ - - - - - - react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-

react-native-auth0

-
-

- react-native-auth0 -

-

- Build Status - NPM version - Coverage - License - Downloads - FOSSA Status -

-

- 📚 Documentation • 🚀 - Getting Started • ⏭️ - Next Steps • ❓ - FAQs - • ❓ Feedback -

- -

- ⚠️ Important Migration Notice: v4.0.0 -

-

- We're excited to announce the release of react-native-auth0 - v4.0.0! Please note that this update includes breaking - changes that require your attention. To ensure a smooth transition, - please review our 👉 - Migration Guide - 👈 for detailed instructions on updating your integration. -

- -

Documentation

- - -

Getting Started

- -

Requirements

-

- This SDK targets apps that are using React Native SDK version - 0.65.0 and up. If you're using an older React - Native version, see the compatibility matrix below. -

- -

- Platform compatibility -

-

- The following shows platform minimums for running projects with this - SDK: -

- - - - - - - - - - - - - - - - - -
PlatformMinimum version
iOS13.0
Android34
-

- Our SDK requires a minimum iOS deployment target of 13.0. In your - project's ios/Podfile, ensure your platform target is set to - 13.0. -

-
platform :ios, '13.0'
-
- -

Installation

-

First install the native library module:

- -

- With npm -

-

$ npm install react-native-auth0 --save

- -

- With Yarn -

-

$ yarn add react-native-auth0

-

- Then, you need to run the following command to install the ios app - pods with Cocoapods. That will auto-link the iOS library: -

-

$ cd ios && pod install

- -

Configure the SDK

-

- You need to make your Android, iOS or Expo applications aware that - an authentication result will be received from the browser. This SDK - makes use of the Android's Package Name and its analogous - iOS's Product Bundle Identifier to generate the redirect URL. - Each platform has its own set of instructions. -

- -

Android

-
-

- Before version 2.9.0, this SDK required you to add an intent - filter to the Activity on which you're going to receive the - authentication result, and to use the singleTask - launchMode in that activity. To migrate your app - to version 2.9.0+, remove both and continue with - the instructions below. You can also check out a sample migration - diff - here. -

-
-

- Open your app's build.gradle file (typically at - android/app/build.gradle) and add the following - manifest placeholders: -

-
android {
defaultConfig {
// Add the next line
manifestPlaceholders = [auth0Domain: "YOUR_AUTH0_DOMAIN", auth0Scheme: "${applicationId}.auth0"]
}
...
} -
-

- The auth0Domain value must be replaced with your Auth0 - domain value. So if you have samples.us.auth0.com as - your Auth0 domain you would have a configuration like the following: -

-
android {
defaultConfig {
manifestPlaceholders = [auth0Domain: "samples.us.auth0.com", auth0Scheme: "${applicationId}.auth0"]
}
...
} -
-

- The applicationId value will be auto-replaced at - runtime with the package name or ID of your application (e.g. - com.example.app). You can change this value from the - build.gradle file. You can also check it at the top of - your AndroidManifest.xml file. -

-
-

- Note that if your Android application is using - product flavors, you might need to specify different manifest placeholders for - each flavor. -

-
-

- If you use a value other than applicationId in - auth0Scheme you will also need to pass it as the - customScheme option parameter of the - authorize and clearSession methods. -

-

- Take note of this value as you'll be requiring it to define the - callback URLs below. -

-
-

- For more info please read the - React Native docs. -

-
- -
- Skipping the Web Authentication setup -
-

- If you don't plan to use Web Authentication, you will notice - that the compiler will still prompt you to provide the - manifestPlaceholders values, since the - RedirectActivity included in this library will require - them, and the Gradle tasks won't be able to run without them. -

-

- Re-declare the activity manually with - tools:node="remove" in your app's Android - Manifest in order to make the manifest merger remove it from the - final manifest file. Additionally, one more unused activity can be - removed from the final APK by using the same process. A complete - snippet to achieve this is: -

-
<activity
android:name="com.auth0.android.provider.AuthenticationActivity"
tools:node="remove"/>
<!-- Optional: Remove RedirectActivity -->
<activity
android:name="com.auth0.android.provider.RedirectActivity"
tools:node="remove"/> -
- -

iOS

-

- Inside the ios folder find the file - AppDelegate.[swift|m] add the following to it: -

-
#import <React/RCTLinkingManager.h>

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options
{
return [RCTLinkingManager application:app openURL:url options:options];
} -
-

- Inside the ios folder open the - Info.plist and locate the value for - CFBundleIdentifier, e.g. -

-
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> -
-

- and then below it register a URL type entry using the value of - CFBundleIdentifier as the value for - CFBundleURLSchemes: -

-
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>CFBundleURLName</key>
<string>auth0</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).auth0</string>
</array>
</dict>
</array> -
-

- If your application is generated using the React Native CLI, the - default value of $(PRODUCT_BUNDLE_IDENTIFIER) matches - org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier). Take note of this value as you'll be requiring it to define - the callback URLs below. If desired, you can change its value using - XCode in the following way: -

-
    -
  • - Open the ios/TestApp.xcodeproj file replacing - 'TestApp' with the name of your app or run - xed ios from a Terminal. -
  • -
  • - Open your project's or desired target's - Build Settings tab and on the search bar at the - right type "Product Bundle Identifier". -
  • -
  • - Replace the Product Bundle Identifier value with - your desired application's bundle identifier name (e.g. - com.example.app). -
  • -
  • - If you've changed the project wide settings, make sure the - same were applied to each of the targets your app has. -
  • -
-

- If you use a value other than - $(PRODUCT_BUNDLE_IDENTIFIER) in the - CFBundleURLSchemes field of the - Info.plist you will also need to pass it as the - customScheme option parameter of the - authorize and clearSession methods. -

-
-

- For more info please read the - React Native docs. -

-
- -

Expo

-
-

- :warning: This SDK is not compatible with "Expo Go" app - because of custom native code. It is compatible with Custom Dev - Client and EAS builds -

-
-

- To use the SDK with Expo, configure the app at build time by - providing the domain and the - customScheme values through the - Config Plugin. To do this, add the following snippet to app.json or - app.config.js: -

-
{
"expo": {
...
"plugins": [
[
"react-native-auth0",
{
"domain": "YOUR_AUTH0_DOMAIN",
"customScheme": "YOUR_CUSTOM_SCHEME"
}
]
]
}
} -
-
-

- :info: If you want to switch between multiple domains in your app, - refer - here -

-
- - - - - - - - - - - - - - - - - -
APIDescription
domain - Mandatory: Provide the Auth0 domain that can be found at the - Application Settings -
customScheme - Optional: Custom scheme to build the callback URL with. The - value provided here should be passed to the - customScheme option parameter of the - authorize and clearSession methods. - The custom scheme should be a unique, all lowercase value with - no special characters. -
-

- Now you can run the application using - expo run:android or expo run:ios. -

- -

Callback URL(s)

-

- Callback URLs are the URLs that Auth0 invokes after the - authentication process. Auth0 routes your application back to this - URL and appends additional parameters to it, including a token. - Since callback URLs can be manipulated, you will need to add this - URL to your Application's - Allowed Callback URLs for security. This will - enable Auth0 to recognize these URLs as valid. If omitted, - authentication will not be successful. -

-

- On the Android platform this URL is case-sensitive. Because of that, - this SDK will auto convert the Bundle Identifier (iOS) and - Application ID (Android) values to lowercase in order to build the - Callback URL with them. If any of these values contains uppercase - characters a warning message will be printed in the console. Make - sure to check that the right Callback URL is whitelisted in the - Auth0 dashboard or the browser will not route successfully back to - your application. -

-

- Go to the - Auth0 Dashboard, select your application and make sure that - Allowed Callback URLs contains the URLs defined - below. -

-

- If in addition you plan to use the log out method, you must also add - these URLs to the Allowed Logout URLs. -

- -

Android

-
{YOUR_APP_PACKAGE_NAME}.auth0://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback
-
-
-

- Make sure to replace {YOUR_APP_PACKAGE_NAME} and {AUTH0_DOMAIN} - with the actual values for your application. The - {YOUR_APP_PACKAGE_NAME} value provided should be all lower case. -

-
- -

iOS

-
{PRODUCT_BUNDLE_IDENTIFIER}.auth0://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback
-
-
-

- Make sure to replace {PRODUCT_BUNDLE_IDENTIFIER} and - {AUTH0_DOMAIN} with the actual values for your application. The - {PRODUCT_BUNDLE_IDENTIFIER} value provided should be all lower - case. -

-
- -

Next Steps

-
-

- This SDK is OIDC compliant. To ensure OIDC compliant responses - from the Auth0 servers enable the - OIDC Conformant switch in your Auth0 dashboard - under Application / Settings / Advanced OAuth. For - more information please check - this documentation. -

-
- -

Web Authentication

-

- The SDK exports a React hook as the primary interface for performing - web authentication through the - browser using Auth0 - Universal Login. -

-

- Use the methods from the useAuth0 hook to implement - login, logout, and to retrieve details about the authenticated user. -

-

- See the - API Documentation - for full details on the useAuth0 hook. -

-

- First, import the Auth0Provider component and wrap it - around your application. Provide the domain and - clientId values as given to you when setting up your - Auth0 app in the dashboard: -

-
import { Auth0Provider } from 'react-native-auth0';

const App = () => {
return (
<Auth0Provider domain="YOUR_AUTH0_DOMAIN" clientId="YOUR_AUTH0_CLIENT_ID">
{/* YOUR APP */}
</Auth0Provider>
);
};

export default App; -
-
- Using the `Auth0` class - -

- If you're not using React Hooks, you can simply instantiate - the Auth0 class: -

-
import Auth0 from 'react-native-auth0';

const auth0 = new Auth0({
domain: 'YOUR_AUTH0_DOMAIN',
clientId: 'YOUR_AUTH0_CLIENT_ID',
}); -
-
- -

- Then import the hook into a component where you want to get access - to the properties and methods for integrating with Auth0: -

-
import { useAuth0 } from 'react-native-auth0';
-
- -

Login

-

- Use the authorize method to redirect the user to the - Auth0 - Universal Login - page for authentication. If scope is not specified, - openid profile email is used by default. -

-
    -
  • - The isLoading property is set to true once the - authentication state of the user is known to the SDK. -
  • -
  • - The user property is populated with details about the - authenticated user. If user is null, no - user is currently authenticated. -
  • -
  • - The error property is populated if any error occurs. -
  • -
-
const Component = () => {
const { authorize, user, isLoading, error } = useAuth0();

const login = async () => {
await authorize();
};

if (isLoading) {
return (
<View>
<Text>SDK is Loading</Text>
</View>
);
}

return (
<View>
{!user && <Button onPress={login} title="Log in" />}
{user && <Text>Logged in as {user.name}</Text>}
{error && <Text>{error.message}</Text>}
</View>
);
}; -
-
- Using the `Auth0` class - -
auth0.webAuth
.authorize()
.then(credentials => console.log(credentials))
.catch(error => console.log(error)); -
-
- -
-

- Web Authentication flows require a Browser application installed - on the device. When no Browser is available, an error of type - a0.browser_not_available will be raised via the - provided callback. -

-
- -
SSO Alert Box (iOS)
-

ios-sso-alert

-

- Check the FAQ for more information about the - alert box that pops up by default when using Web - Auth on iOS. -

-
-

- See also - this blog post - for a detailed overview of Single Sign-On (SSO) on iOS. -

-
- -

Logout

-

- Log the user out by using the clearSession method from - the useAuth0 hook. -

-
const Component = () => {
const { clearSession, user } = useAuth0();

const logout = async () => {
await clearSession();
};

return <View>{user && <Button onPress={logout} title="Log out" />}</View>;
}; -
-
- Using the `Auth0` class - -
auth0.webAuth.clearSession().catch((error) => console.log(error));
-
-
- - -

Credentials Manager

- -

- The Credentials Manager allows you to securely store and retrieve - the user's credentials. The credentials will be stored encrypted - in Shared Preferences on Android, and in the Keychain on iOS. -

-

- The Auth0 class exposes the - credentialsManager property for you to interact with - using the API below. -

-
-

- 💡 If you're using Web Auth (authorize) through - Hooks, you do not need to manually store the credentials after - login and delete them after logout; the SDK does this - automatically. -

-
- -

- Check for stored credentials -

-

- When the users open your app, check for valid credentials. If they - exist, you can retrieve them and redirect the users to the app's - main flow without any additional login steps. -

-
const isLoggedIn = await auth0.credentialsManager.hasValidCredentials();

if (isLoggedIn) {
// Retrieve credentials and redirect to the main flow
} else {
// Redirect to the login page
} -
- -

- Retrieve stored credentials -

-

- The credentials will be automatically renewed using the - refresh token, if the access token has expired. - This method is thread safe. -

-
const credentials = await auth0.credentialsManager.getCredentials();
-
-
-

- 💡 You do not need to call credentialsManager.saveCredentials() - afterward. The Credentials Manager automatically persists the - renewed credentials. -

-
- -

- Requiring Authentication before obtaining Credentials -

-
-

- :warning: The requireLocalAuthentication method is no - longer available as part of the - CredentialsManager class or the - useAuth0 Hook from v4 of the SDK. -

-
-
-

- ℹ️ You need to use at least version 0.59.0 of React - Native, as it uses FragmentActivity as the base - activity, which is required for biometric authentication to work. -

-
-

- You can enable an additional level of user authentication before - retrieving credentials using the local authentication supported by - the device, for example PIN or fingerprint on Android, and Face ID - or Touch ID on iOS. -

-

- Refer to the instructions below to understand how to enable - authentication before retrieving credentials based on your setup: -

-

Using Auth0 Class:

-

- The Auth0 class constructor now accepts a new - parameter, which is an instance of the - LocalAuthenticationOptions object. This needs to be - passed while creating an instance of Auth0 to enable - authentication before obtaining credentials, as shown in the code - snippet below: -

-
import Auth0 from 'react-native-auth0';
const localAuthOptions: LocalAuthenticationOptions = {
title: 'Authenticate to retreive your credentials',
subtitle: 'Please authenticate to continue',
description: 'We need to authenticate you to retrieve your credentials',
cancelTitle: 'Cancel',
evaluationPolicy: LocalAuthenticationStrategy.deviceOwnerWithBiometrics,
fallbackTitle: 'Use Passcode',
authenticationLevel: LocalAuthenticationLevel.strong,
deviceCredentialFallback: true,
};
const auth0 = new Auth0({
domain: config.domain,
clientId: config.clientId,
localAuthenticationOptions: localAuthOptions,
}); -
-

Using Hooks (Auth0Provider):

-

- Auth0Provider now accepts a new parameter, which is an - instance of the LocalAuthenticationOptions object. This - needs to be passed to enable authentication before obtaining - credentials, as shown in the code snippet below: -

-
import { Auth0Provider } from 'react-native-auth0';

const localAuthOptions: LocalAuthenticationOptions = {
title: 'Authenticate to retreive your credentials',
subtitle: 'Please authenticate to continue',
description: 'We need to authenticate you to retrieve your credentials',
cancelTitle: 'Cancel',
evaluationPolicy: LocalAuthenticationStrategy.deviceOwnerWithBiometrics,
fallbackTitle: 'Use Passcode',
authenticationLevel: LocalAuthenticationLevel.strong,
deviceCredentialFallback: true,
};

const App = () => {
return (
<Auth0Provider
domain={config.domain}
clientId={config.clientId}
localAuthenticationOptions={localAuthOptions}
>
{/* YOUR APP */}
</Auth0Provider>
);
};

export default App; -
-

- Detailed information on LocalAuthenticationOptions is - available here -

-

LocalAuthenticationOptions:

-

- The options for configuring the display of local authentication - prompt, authentication level (Android only), and evaluation policy - (iOS only). -

-

Properties:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyTypeDescriptionApplicable Platforms
titleStringThe title of the authentication prompt.Android, iOS
subtitleString (optional)The subtitle of the authentication prompt.Android
descriptionString (optional)The description of the authentication prompt.Android
cancelTitleString (optional)The cancel button title of the authentication prompt.Android, iOS
evaluationPolicyLocalAuthenticationStrategy (optional) - The evaluation policy to use when prompting the user for - authentication. Defaults to - deviceOwnerWithBiometrics. - iOS
fallbackTitleString (optional)The fallback button title of the authentication prompt.iOS
authenticationLevelLocalAuthenticationLevel (optional) - The authentication level to use when prompting the user for - authentication. Defaults to strong. - Android
deviceCredentialFallbackBoolean (optional) - Should the user be given the option to authenticate with their - device PIN, pattern, or password instead of a biometric. - Android
-
-

- :warning: You need a real device to test Local Authentication for - iOS. Local Authentication is not available in simulators. -

-
- -

- Credentials Manager errors -

-

- The Credentials Manager will only throw - CredentialsManagerError exceptions. You can find more - information in the details property of the exception. -

-
try {
const credentials = await auth0.credentialsManager.getCredentials();
} catch (error) {
console.log(error);
} -
-

Platform agnostic errors:

-

- You can access the platform agnostic generic error codes as below : -

-
try {
const credentials = await auth0.credentialsManager.getCredentials();
} catch (error) {
console.log(e.type);
} -
-

- Note : We have platform agnostic error codes available only - for CredentialsManagerError as of now. -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Generic Error CodeCorresponding Error Code in AndroidCorresponding Error Code in iOS
INVALID_CREDENTIALSINVALID_CREDENTIALS
NO_CREDENTIALSNO_CREDENTIALSnoCredentials
NO_REFRESH_TOKENNO_REFRESH_TOKENnoRefreshToken
RENEW_FAILEDRENEW_FAILEDrenewFailed
STORE_FAILEDSTORE_FAILEDstoreFailed
REVOKE_FAILEDREVOKE_FAILEDrevokeFailed
LARGE_MIN_TTLLARGE_MIN_TTLlargeMinTTL
INCOMPATIBLE_DEVICEINCOMPATIBLE_DEVICE
CRYPTO_EXCEPTIONCRYPTO_EXCEPTION
BIOMETRICS_FAILED - OneOf
BIOMETRIC_NO_ACTIVITY,BIOMETRIC_ERROR_STATUS_UNKNOWN,BIOMETRIC_ERROR_UNSUPPORTED,
BIOMETRIC_ERROR_HW_UNAVAILABLE,BIOMETRIC_ERROR_NONE_ENROLLED,BIOMETRIC_ERROR_NO_HARDWARE,
BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED,BIOMETRIC_AUTHENTICATION_CHECK_FAILED,
BIOMETRIC_ERROR_DEVICE_CREDENTIAL_NOT_AVAILABLE -
biometricsFailed
NO_NETWORKNO_NETWORK
API_ERRORAPI_ERROR
- -

Feedback

- -

Contributing

-

- We appreciate feedback and contribution to this repo! Before you get - started, please see the following: -

- - -

Raise an issue

-

- To provide feedback or report a bug, - please raise an issue on our issue tracker. -

- -

- Vulnerability Reporting -

-

- Please do not report security vulnerabilities on the public Github - issue tracker. The - Responsible Disclosure Program - details the procedure for disclosing security issues. -

-
-

- - - - Auth0 Logo - -

-

- Auth0 is an easy to implement, adaptable authentication and - authorization platform. To learn more checkout - Why Auth0? -

-

- This project is licensed under the MIT license. See the - - LICENSE - file for more info. -

- - -
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/AuthorizeUrlOptions.html b/docs/interfaces/AuthorizeUrlOptions.html deleted file mode 100644 index e85fc830..00000000 --- a/docs/interfaces/AuthorizeUrlOptions.html +++ /dev/null @@ -1,457 +0,0 @@ - - - - - - AuthorizeUrlOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface AuthorizeUrlOptions

-
-
-
-

Options for building a URL for /authorize

-
-
-
-
- interface AuthorizeUrlOptions - {
    redirectUri: object;
    responseType: string;
    state: object;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
-

Custom parameters to send to /authorize

-
-
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- redirectUri: - object -
-
-

- Where the authorization server will redirect back after success - or failure. -

-
-
- -
-
- - -
- responseType: - string -
-
-

The response_type value

-
-
- -
-
- - -
- state: - object -
-
-

Random string to prevent CSRF attacks.

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/AuthorizeUrlOptions.md b/docs/interfaces/AuthorizeUrlOptions.md new file mode 100644 index 00000000..2f3c2b90 --- /dev/null +++ b/docs/interfaces/AuthorizeUrlOptions.md @@ -0,0 +1,47 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / AuthorizeUrlOptions + +# Interface: AuthorizeUrlOptions + +Defined in: [types.ts:205](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L205) + +Options for building a URL for `/authorize` + +## Indexable + +\[`key`: `string`\]: `any` + +Custom parameters to send to `/authorize` + +## Properties + +### redirectUri + +> **redirectUri**: `object` + +Defined in: [types.ts:213](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L213) + +Where the authorization server will redirect back after success or failure. + +--- + +### responseType + +> **responseType**: `string` + +Defined in: [types.ts:209](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L209) + +The response_type value + +--- + +### state + +> **state**: `object` + +Defined in: [types.ts:217](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L217) + +Random string to prevent CSRF attacks. diff --git a/docs/interfaces/ClearSessionOptions.html b/docs/interfaces/ClearSessionOptions.html deleted file mode 100644 index 3f26a429..00000000 --- a/docs/interfaces/ClearSessionOptions.html +++ /dev/null @@ -1,406 +0,0 @@ - - - - - - ClearSessionOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface ClearSessionOptions

-
-
-
-

- Options for configuring the SDK's clear session behaviour. -

-
-
-
-
- interface ClearSessionOptions - {
    customScheme?: string;
    useLegacyCallbackUrl?: boolean;
} -
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- customScheme?: - string -
-
-

- Android only: Custom scheme to build the - callback URL with. -

-
-
- -
-
- - -
- useLegacyCallbackUrl?: - boolean -
-
-

- This will use older callback URL. See - https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md#callback-url-migration - for more details. -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/ClearSessionOptions.md b/docs/interfaces/ClearSessionOptions.md new file mode 100644 index 00000000..fcd66a9a --- /dev/null +++ b/docs/interfaces/ClearSessionOptions.md @@ -0,0 +1,31 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / ClearSessionOptions + +# Interface: ClearSessionOptions + +Defined in: [types.ts:180](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L180) + +Options for configuring the SDK's clear session behaviour. + +## Properties + +### customScheme? + +> `optional` **customScheme**: `string` + +Defined in: [types.ts:184](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L184) + +**Android only:** Custom scheme to build the callback URL with. + +--- + +### useLegacyCallbackUrl? + +> `optional` **useLegacyCallbackUrl**: `boolean` + +Defined in: [types.ts:188](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L188) + +This will use older callback URL. See [https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md#callback-url-migration](https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md#callback-url-migration) for more details. diff --git a/docs/interfaces/ClearSessionParameters.html b/docs/interfaces/ClearSessionParameters.html deleted file mode 100644 index 4951790b..00000000 --- a/docs/interfaces/ClearSessionParameters.html +++ /dev/null @@ -1,424 +0,0 @@ - - - - - - ClearSessionParameters | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface ClearSessionParameters

-
-
-
-

Parameters for sending to the Auth0 logout endpoint.

-
-
-
-
- interface ClearSessionParameters - {
    federated?: boolean;
    returnToUrl?: string;
} -
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- federated?: - boolean -
-
-

- If true, the user will be signed out of any - connected identity providers in addition to their Auth0 session. -

-
- - -
-
- - -
- returnToUrl?: - string -
-
-

- Specify a custom redirect URL to be used. Normally, you - wouldn't need to call this method manually as the default - value is autogenerated for you. -

-

- If you are using this, ensure a proper redirect URL is - constructed in the following format Android: - {YOUR_APP_PACKAGE_NAME}.auth0://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback - iOS: - {PRODUCT_BUNDLE_IDENTIFIER}.auth0://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback -

-

- If you have useLegacyCallbackUrl set to true then - the redirect URL should in the format Android: - {YOUR_APP_PACKAGE_NAME}://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback - iOS: - {PRODUCT_BUNDLE_IDENTIFIER}://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/ClearSessionParameters.md b/docs/interfaces/ClearSessionParameters.md new file mode 100644 index 00000000..3a7aa216 --- /dev/null +++ b/docs/interfaces/ClearSessionParameters.md @@ -0,0 +1,47 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / ClearSessionParameters + +# Interface: ClearSessionParameters + +Defined in: [types.ts:156](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L156) + +Parameters for sending to the Auth0 logout endpoint. + +## Properties + +### federated? + +> `optional` **federated**: `boolean` + +Defined in: [types.ts:162](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L162) + +If `true`, the user will be signed out of any connected identity providers in addition to their Auth0 session. + +#### Default + +`false` + +#### See + +https://auth0.com/docs/authenticate/login/logout/log-users-out-of-idps + +--- + +### returnToUrl? + +> `optional` **returnToUrl**: `string` + +Defined in: [types.ts:174](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L174) + +Specify a custom redirect URL to be used. Normally, you wouldn't need to call this method manually as the default value is autogenerated for you. + +If you are using this, ensure a proper redirect URL is constructed in the following format +Android: {YOUR_APP_PACKAGE_NAME}.auth0://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback +iOS: {PRODUCT_BUNDLE_IDENTIFIER}.auth0://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback + +If you have `useLegacyCallbackUrl` set to true then the redirect URL should in the format +Android: {YOUR_APP_PACKAGE_NAME}://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback +iOS: {PRODUCT_BUNDLE_IDENTIFIER}://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback diff --git a/docs/interfaces/CreateUserOptions.html b/docs/interfaces/CreateUserOptions.html deleted file mode 100644 index 68912e67..00000000 --- a/docs/interfaces/CreateUserOptions.html +++ /dev/null @@ -1,795 +0,0 @@ - - - - - - CreateUserOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface CreateUserOptions

-
-
-
-

Options for creating a new user.

-
-
-
-
- interface CreateUserOptions - {
    connection: string;
    email: string;
    family_name?: string;
    given_name?: string;
    metadata?: object;
    name?: string;
    nickname?: string;
    password: string;
    picture?: string;
    username?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - - -
-
-
-
-

Properties

-
- - -
- connection: - string -
-
-

- The name of the database connection where to create the user -

-
-
- -
-
- - -
- email: - string -
-
-

The user's email

-
-
- -
-
- - -
- family_name?: - string -
-
-

The user's family name(s)

-
-
- -
-
- - -
- given_name?: - string -
-
-

The user's given name(s)

-
-
- -
-
- - -
- metadata?: - object -
-
-

- Additional information that will be stored in - user_metadata -

-
-
- -
-
- - -
- name?: - string -
-
-

The user's full name

-
-
- -
-
- - -
- nickname?: - string -
-
-

The user's nickname

-
-
- -
-
- - -
- password: - string -
-
-

The user's password

-
-
- -
-
- - -
- picture?: - string -
-
-

A URL pointing to the user's picture

-
-
- -
-
- - -
- username?: - string -
-
-

The user's username

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/CreateUserOptions.md b/docs/interfaces/CreateUserOptions.md new file mode 100644 index 00000000..a2cafe9c --- /dev/null +++ b/docs/interfaces/CreateUserOptions.md @@ -0,0 +1,115 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / CreateUserOptions + +# Interface: CreateUserOptions + +Defined in: [types.ts:537](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L537) + +Options for creating a new user. + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### connection + +> **connection**: `string` + +Defined in: [types.ts:549](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L549) + +The name of the database connection where to create the user + +--- + +### email + +> **email**: `string` + +Defined in: [types.ts:541](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L541) + +The user's email + +--- + +### family_name? + +> `optional` **family_name**: `string` + +Defined in: [types.ts:561](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L561) + +The user's family name(s) + +--- + +### given_name? + +> `optional` **given_name**: `string` + +Defined in: [types.ts:557](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L557) + +The user's given name(s) + +--- + +### metadata? + +> `optional` **metadata**: `object` + +Defined in: [types.ts:577](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L577) + +Additional information that will be stored in `user_metadata` + +--- + +### name? + +> `optional` **name**: `string` + +Defined in: [types.ts:565](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L565) + +The user's full name + +--- + +### nickname? + +> `optional` **nickname**: `string` + +Defined in: [types.ts:569](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L569) + +The user's nickname + +--- + +### password + +> **password**: `string` + +Defined in: [types.ts:545](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L545) + +The user's password + +--- + +### picture? + +> `optional` **picture**: `string` + +Defined in: [types.ts:573](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L573) + +A URL pointing to the user's picture + +--- + +### username? + +> `optional` **username**: `string` + +Defined in: [types.ts:553](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L553) + +The user's username diff --git a/docs/interfaces/ExchangeNativeSocialOptions.html b/docs/interfaces/ExchangeNativeSocialOptions.html deleted file mode 100644 index e26a2f57..00000000 --- a/docs/interfaces/ExchangeNativeSocialOptions.html +++ /dev/null @@ -1,576 +0,0 @@ - - - - - - ExchangeNativeSocialOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface ExchangeNativeSocialOptions

-
-
-
-

- Options for obtaining user tokens from an external provider's - token -

-
-
-
-
- interface ExchangeNativeSocialOptions - {
    audience?: string;
    scope?: string;
    subjectToken: string;
    subjectTokenType: string;
    userProfile?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - - -
-
-
-
-

Properties

-
- - -
- audience?: - string -
-
-

The API audience to request

-
-
- -
-
- - -
- scope?: - string -
-
-

- The scopes requested for the issued tokens. e.g. - openid profile -

-
-
- -
-
- - -
- subjectToken: - string -
-
-

- The token returned by the native social authentication solution -

-
-
- -
-
- - -
- subjectTokenType: - string -
-
-

- The identifier that indicates the native social authentication - solution -

-
-
- -
-
- - -
- userProfile?: - string -
-
-

- Additional profile attributes to set or override, only on select - native social authentication solutions -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/ExchangeNativeSocialOptions.md b/docs/interfaces/ExchangeNativeSocialOptions.md new file mode 100644 index 00000000..d2d54d9b --- /dev/null +++ b/docs/interfaces/ExchangeNativeSocialOptions.md @@ -0,0 +1,65 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / ExchangeNativeSocialOptions + +# Interface: ExchangeNativeSocialOptions + +Defined in: [types.ts:271](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L271) + +Options for obtaining user tokens from an external provider's token + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### audience? + +> `optional` **audience**: `string` + +Defined in: [types.ts:287](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L287) + +The API audience to request + +--- + +### scope? + +> `optional` **scope**: `string` + +Defined in: [types.ts:291](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L291) + +The scopes requested for the issued tokens. e.g. `openid profile` + +--- + +### subjectToken + +> **subjectToken**: `string` + +Defined in: [types.ts:275](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L275) + +The token returned by the native social authentication solution + +--- + +### subjectTokenType + +> **subjectTokenType**: `string` + +Defined in: [types.ts:279](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L279) + +The identifier that indicates the native social authentication solution + +--- + +### userProfile? + +> `optional` **userProfile**: `string` + +Defined in: [types.ts:283](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L283) + +Additional profile attributes to set or override, only on select native social authentication solutions diff --git a/docs/interfaces/ExchangeOptions.html b/docs/interfaces/ExchangeOptions.html deleted file mode 100644 index af315318..00000000 --- a/docs/interfaces/ExchangeOptions.html +++ /dev/null @@ -1,456 +0,0 @@ - - - - - - ExchangeOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface ExchangeOptions

-
-
-
-

- Options for the /oauth/token endpoint to exchange a - code for an access token -

-
-
-
-
- interface ExchangeOptions - {
    code: string;
    redirectUri: string;
    verifier: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
-

Custom parameters to send to the /oauth/token endpoint

-
-
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- code: - string -
-
-

The code returned by /authorize.

-
-
- -
-
- - -
- redirectUri: - string -
-
-

- The original redirectUri used when calling - /authorize. -

-
-
- -
-
- - -
- verifier: - string -
-
-

- The value used to generate the code challenge sent to - /authorize. -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/ExchangeOptions.md b/docs/interfaces/ExchangeOptions.md new file mode 100644 index 00000000..e4e1818d --- /dev/null +++ b/docs/interfaces/ExchangeOptions.md @@ -0,0 +1,47 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / ExchangeOptions + +# Interface: ExchangeOptions + +Defined in: [types.ts:249](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L249) + +Options for the `/oauth/token` endpoint to exchange a code for an access token + +## Indexable + +\[`key`: `string`\]: `any` + +Custom parameters to send to the /oauth/token endpoint + +## Properties + +### code + +> **code**: `string` + +Defined in: [types.ts:253](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L253) + +The code returned by `/authorize`. + +--- + +### redirectUri + +> **redirectUri**: `string` + +Defined in: [types.ts:261](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L261) + +The original redirectUri used when calling `/authorize`. + +--- + +### verifier + +> **verifier**: `string` + +Defined in: [types.ts:257](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L257) + +The value used to generate the code challenge sent to `/authorize`. diff --git a/docs/interfaces/GetUserOptions.html b/docs/interfaces/GetUserOptions.html deleted file mode 100644 index 7e611167..00000000 --- a/docs/interfaces/GetUserOptions.html +++ /dev/null @@ -1,335 +0,0 @@ - - - - - - GetUserOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface GetUserOptions

-
-
- interface GetUserOptions - {
    id: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

-
- - id -
-
-
-
-
-
-
-

Properties

-
- - -
- id: - string -
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/GetUserOptions.md b/docs/interfaces/GetUserOptions.md new file mode 100644 index 00000000..0dbac817 --- /dev/null +++ b/docs/interfaces/GetUserOptions.md @@ -0,0 +1,21 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / GetUserOptions + +# Interface: GetUserOptions + +Defined in: [types.ts:191](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L191) + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### id + +> **id**: `string` + +Defined in: [types.ts:192](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L192) diff --git a/docs/interfaces/LocalAuthenticationOptions.html b/docs/interfaces/LocalAuthenticationOptions.html deleted file mode 100644 index a82a96ae..00000000 --- a/docs/interfaces/LocalAuthenticationOptions.html +++ /dev/null @@ -1,750 +0,0 @@ - - - - - - LocalAuthenticationOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface LocalAuthenticationOptions

-
-
-
-

- The options for configuring the display of local authentication - prompt, authentication level (Android only) and evaluation policy - (iOS only). -

-
-
-
-
- interface LocalAuthenticationOptions - {
    authenticationLevel?: LocalAuthenticationLevel;
    cancelTitle?: String;
    description?: String;
    deviceCredentialFallback?: Boolean;
    evaluationPolicy?: LocalAuthenticationStrategy;
    fallbackTitle?: String;
    subtitle?: String;
    title: String;
} -
- -
-
-
- - - - -
-
-
-
-

Properties

-
- - -
- authenticationLevel?: - LocalAuthenticationLevel -
-
-

- The authentication level to use when prompting the user for - authentication. Defaults to LocalAuthenticationLevel.strong. - Applicable for Android only. -

-
-
- -
-
- - -
- cancelTitle?: - String -
-
-

- The cancel button title of the authentication prompt. - Applicable for both Android and iOS. -

-
-
- -
-
- - -
- description?: - String -
-
-

- The description of the authentication prompt. - Applicable for Android only. -

-
-
- -
-
- - -
- deviceCredentialFallback?: - Boolean -
-
-

- Should the user be given the option to authenticate with their - device PIN, pattern, or password instead of a biometric. - Applicable for Android only. -

-
-
- -
-
- - -
- evaluationPolicy?: - LocalAuthenticationStrategy -
-
-

- The evaluation policy to use when prompting the user for - authentication. Defaults to - LocalAuthenticationStrategy.deviceOwnerWithBiometrics. - Applicable for iOS only. -

-
-
- -
-
- - -
- fallbackTitle?: - String -
-
-

- The fallback button title of the authentication prompt. - Applicable for iOS only. -

-
-
- -
-
- - -
- subtitle?: - String -
-
-

- The subtitle of the authentication prompt. - Applicable for Android only. -

-
-
- -
-
- - -
- title: - String -
-
-

- The title of the authentication prompt. - Applicable for both Android and iOS. -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/LocalAuthenticationOptions.md b/docs/interfaces/LocalAuthenticationOptions.md new file mode 100644 index 00000000..41a3cc9c --- /dev/null +++ b/docs/interfaces/LocalAuthenticationOptions.md @@ -0,0 +1,91 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / LocalAuthenticationOptions + +# Interface: LocalAuthenticationOptions + +Defined in: [credentials-manager/localAuthenticationOptions.ts:8](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L8) + +The options for configuring the display of local authentication prompt, authentication level (Android only) and evaluation policy (iOS only). + +## Properties + +### authenticationLevel? + +> `optional` **authenticationLevel**: [`LocalAuthenticationLevel`](../enumerations/LocalAuthenticationLevel.md) + +Defined in: [credentials-manager/localAuthenticationOptions.ts:36](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L36) + +The authentication level to use when prompting the user for authentication. Defaults to LocalAuthenticationLevel.strong. **Applicable for Android only.** + +--- + +### cancelTitle? + +> `optional` **cancelTitle**: `String` + +Defined in: [credentials-manager/localAuthenticationOptions.ts:24](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L24) + +The cancel button title of the authentication prompt. **Applicable for both Android and iOS.** + +--- + +### description? + +> `optional` **description**: `String` + +Defined in: [credentials-manager/localAuthenticationOptions.ts:20](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L20) + +The description of the authentication prompt. **Applicable for Android only.** + +--- + +### deviceCredentialFallback? + +> `optional` **deviceCredentialFallback**: `Boolean` + +Defined in: [credentials-manager/localAuthenticationOptions.ts:40](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L40) + +Should the user be given the option to authenticate with their device PIN, pattern, or password instead of a biometric. **Applicable for Android only.** + +--- + +### evaluationPolicy? + +> `optional` **evaluationPolicy**: [`LocalAuthenticationStrategy`](../enumerations/LocalAuthenticationStrategy.md) + +Defined in: [credentials-manager/localAuthenticationOptions.ts:28](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L28) + +The evaluation policy to use when prompting the user for authentication. Defaults to LocalAuthenticationStrategy.deviceOwnerWithBiometrics. **Applicable for iOS only.** + +--- + +### fallbackTitle? + +> `optional` **fallbackTitle**: `String` + +Defined in: [credentials-manager/localAuthenticationOptions.ts:32](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L32) + +The fallback button title of the authentication prompt. **Applicable for iOS only.** + +--- + +### subtitle? + +> `optional` **subtitle**: `String` + +Defined in: [credentials-manager/localAuthenticationOptions.ts:16](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L16) + +The subtitle of the authentication prompt. **Applicable for Android only.** + +--- + +### title + +> **title**: `String` + +Defined in: [credentials-manager/localAuthenticationOptions.ts:12](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/credentials-manager/localAuthenticationOptions.ts#L12) + +The title of the authentication prompt. **Applicable for both Android and iOS**. diff --git a/docs/interfaces/LoginWithEmailOptions.html b/docs/interfaces/LoginWithEmailOptions.html deleted file mode 100644 index 4ef689f0..00000000 --- a/docs/interfaces/LoginWithEmailOptions.html +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - LoginWithEmailOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface LoginWithEmailOptions

-
-
-
-

- The options for completing the passwordless login with email - request -

-
-
-
-
- interface LoginWithEmailOptions - {
    audience?: string;
    code: string;
    email: string;
    scope?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- audience?: - string -
-
-

The API audience to request

-
-
- -
-
- - -
- code: - string -
-
-

The code numeric value (OTP)

-
-
- -
-
- - -
- email: - string -
-
-

The email where the link/code was received

-
-
- -
-
- - -
- scope?: - string -
-
-

The scopes to request

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/LoginWithEmailOptions.md b/docs/interfaces/LoginWithEmailOptions.md new file mode 100644 index 00000000..e80929bd --- /dev/null +++ b/docs/interfaces/LoginWithEmailOptions.md @@ -0,0 +1,55 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / LoginWithEmailOptions + +# Interface: LoginWithEmailOptions + +Defined in: [types.ts:378](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L378) + +The options for completing the passwordless login with email request + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### audience? + +> `optional` **audience**: `string` + +Defined in: [types.ts:390](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L390) + +The API audience to request + +--- + +### code + +> **code**: `string` + +Defined in: [types.ts:386](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L386) + +The code numeric value (OTP) + +--- + +### email + +> **email**: `string` + +Defined in: [types.ts:382](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L382) + +The email where the link/code was received + +--- + +### scope? + +> `optional` **scope**: `string` + +Defined in: [types.ts:394](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L394) + +The scopes to request diff --git a/docs/interfaces/LoginWithOOBOptions.html b/docs/interfaces/LoginWithOOBOptions.html deleted file mode 100644 index f6b0452c..00000000 --- a/docs/interfaces/LoginWithOOBOptions.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - LoginWithOOBOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface LoginWithOOBOptions

-
-
-
-

Options for logging in using an OOB code

-
-
-
-
- interface LoginWithOOBOptions - {
    bindingCode?: string;
    mfaToken: string;
    oobCode: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- bindingCode?: - string -
-
-

- The code used to bind the side channel (used to deliver the - challenge) with the main channel you are using to authenticate. - This is usually an OTP-like code delivered as part of the - challenge message. -

-
-
- -
-
- - -
- mfaToken: - string -
-
-

The token received in the previous login response

-
-
- -
-
- - -
- oobCode: - string -
-
-

The out of band code received in the challenge response.

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/LoginWithOOBOptions.md b/docs/interfaces/LoginWithOOBOptions.md new file mode 100644 index 00000000..fb8ec2d0 --- /dev/null +++ b/docs/interfaces/LoginWithOOBOptions.md @@ -0,0 +1,47 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / LoginWithOOBOptions + +# Interface: LoginWithOOBOptions + +Defined in: [types.ts:444](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L444) + +Options for logging in using an OOB code + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### bindingCode? + +> `optional` **bindingCode**: `string` + +Defined in: [types.ts:458](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L458) + +The code used to bind the side channel (used to deliver the challenge) with the +main channel you are using to authenticate. This is usually an OTP-like code +delivered as part of the challenge message. + +--- + +### mfaToken + +> **mfaToken**: `string` + +Defined in: [types.ts:448](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L448) + +The token received in the previous login response + +--- + +### oobCode + +> **oobCode**: `string` + +Defined in: [types.ts:452](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L452) + +The out of band code received in the challenge response. diff --git a/docs/interfaces/LoginWithOTPOptions.html b/docs/interfaces/LoginWithOTPOptions.html deleted file mode 100644 index dc80fdf5..00000000 --- a/docs/interfaces/LoginWithOTPOptions.html +++ /dev/null @@ -1,451 +0,0 @@ - - - - - - LoginWithOTPOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface LoginWithOTPOptions

-
-
-
-

Options for logging in using an OTP code

-
-
-
-
- interface LoginWithOTPOptions - {
    audience?: string;
    mfaToken: string;
    otp: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- audience?: - string -
-
-

The API audience

-
-
- -
-
- - -
- mfaToken: - string -
-
-

The token received in the previous login response

-
-
- -
-
- - -
- otp: - string -
-
-

- The one time password code provided by the resource owner, - typically obtained from an MFA application such as Google - Authenticator or Guardian. -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/LoginWithOTPOptions.md b/docs/interfaces/LoginWithOTPOptions.md new file mode 100644 index 00000000..9a1eb8dc --- /dev/null +++ b/docs/interfaces/LoginWithOTPOptions.md @@ -0,0 +1,46 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / LoginWithOTPOptions + +# Interface: LoginWithOTPOptions + +Defined in: [types.ts:424](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L424) + +Options for logging in using an OTP code + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### audience? + +> `optional` **audience**: `string` + +Defined in: [types.ts:437](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L437) + +The API audience + +--- + +### mfaToken + +> **mfaToken**: `string` + +Defined in: [types.ts:428](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L428) + +The token received in the previous login response + +--- + +### otp + +> **otp**: `string` + +Defined in: [types.ts:433](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L433) + +The one time password code provided by the resource owner, typically obtained +from an MFA application such as Google Authenticator or Guardian. diff --git a/docs/interfaces/LoginWithRecoveryCodeOptions.html b/docs/interfaces/LoginWithRecoveryCodeOptions.html deleted file mode 100644 index 75f7caa6..00000000 --- a/docs/interfaces/LoginWithRecoveryCodeOptions.html +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - LoginWithRecoveryCodeOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface LoginWithRecoveryCodeOptions

-
-
-
-

Options for logging in using a recovery code

-
-
-
-
- interface LoginWithRecoveryCodeOptions - {
    mfaToken: string;
    recoveryCode: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- mfaToken: - string -
-
-

The token received in the previous login response

-
-
- -
-
- - -
- recoveryCode: - string -
-
-

The recovery code provided by the end-user.

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/LoginWithRecoveryCodeOptions.md b/docs/interfaces/LoginWithRecoveryCodeOptions.md new file mode 100644 index 00000000..2cddb9a3 --- /dev/null +++ b/docs/interfaces/LoginWithRecoveryCodeOptions.md @@ -0,0 +1,35 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / LoginWithRecoveryCodeOptions + +# Interface: LoginWithRecoveryCodeOptions + +Defined in: [types.ts:465](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L465) + +Options for logging in using a recovery code + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### mfaToken + +> **mfaToken**: `string` + +Defined in: [types.ts:469](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L469) + +The token received in the previous login response + +--- + +### recoveryCode + +> **recoveryCode**: `string` + +Defined in: [types.ts:473](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L473) + +The recovery code provided by the end-user. diff --git a/docs/interfaces/LoginWithSMSOptions.html b/docs/interfaces/LoginWithSMSOptions.html deleted file mode 100644 index 5c37683d..00000000 --- a/docs/interfaces/LoginWithSMSOptions.html +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - LoginWithSMSOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface LoginWithSMSOptions

-
-
-
-

- The options for completing the passwordless login with SMS request -

-
-
-
-
- interface LoginWithSMSOptions - {
    audience?: string;
    code: string;
    phoneNumber: string;
    scope?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- audience?: - string -
-
-

Optional API audience to request

-
-
- -
-
- - -
- code: - string -
-
-

The code numeric value (OTP)

-
-
- -
-
- - -
- phoneNumber: - string -
-
-

The phone number where the code was received

-
-
- -
-
- - -
- scope?: - string -
-
-

Optional scopes to request

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/LoginWithSMSOptions.md b/docs/interfaces/LoginWithSMSOptions.md new file mode 100644 index 00000000..c0e34974 --- /dev/null +++ b/docs/interfaces/LoginWithSMSOptions.md @@ -0,0 +1,55 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / LoginWithSMSOptions + +# Interface: LoginWithSMSOptions + +Defined in: [types.ts:401](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L401) + +The options for completing the passwordless login with SMS request + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### audience? + +> `optional` **audience**: `string` + +Defined in: [types.ts:413](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L413) + +Optional API audience to request + +--- + +### code + +> **code**: `string` + +Defined in: [types.ts:409](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L409) + +The code numeric value (OTP) + +--- + +### phoneNumber + +> **phoneNumber**: `string` + +Defined in: [types.ts:405](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L405) + +The phone number where the code was received + +--- + +### scope? + +> `optional` **scope**: `string` + +Defined in: [types.ts:417](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L417) + +Optional scopes to request diff --git a/docs/interfaces/LogoutUrlOptions.html b/docs/interfaces/LogoutUrlOptions.html deleted file mode 100644 index 44b51a2a..00000000 --- a/docs/interfaces/LogoutUrlOptions.html +++ /dev/null @@ -1,462 +0,0 @@ - - - - - - LogoutUrlOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface LogoutUrlOptions

-
-
-
-

Options for the logout endpoint

-
-
-
-
- interface LogoutUrlOptions - {
    clientId?: string;
    federated?: boolean;
    returnTo?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
-

Custom parameters to send to the logout endpoint

-
-
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- clientId?: - string -
-
-

The client identifier of the one requesting the logout

-
-
- -
-
- - -
- federated?: - boolean -
-
-

- Whether the logout should include removing session for federated - IdP. -

-
-
- -
-
- - -
- returnTo?: - string -
-
-

- URL where the user is redirected to after logout. It must be - declared in you Auth0 Dashboard -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/LogoutUrlOptions.md b/docs/interfaces/LogoutUrlOptions.md new file mode 100644 index 00000000..21ece5dd --- /dev/null +++ b/docs/interfaces/LogoutUrlOptions.md @@ -0,0 +1,47 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / LogoutUrlOptions + +# Interface: LogoutUrlOptions + +Defined in: [types.ts:227](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L227) + +Options for the logout endpoint + +## Indexable + +\[`key`: `string`\]: `any` + +Custom parameters to send to the logout endpoint + +## Properties + +### clientId? + +> `optional` **clientId**: `string` + +Defined in: [types.ts:235](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L235) + +The client identifier of the one requesting the logout + +--- + +### federated? + +> `optional` **federated**: `boolean` + +Defined in: [types.ts:231](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L231) + +Whether the logout should include removing session for federated IdP. + +--- + +### returnTo? + +> `optional` **returnTo**: `string` + +Defined in: [types.ts:239](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L239) + +URL where the user is redirected to after logout. It must be declared in you Auth0 Dashboard diff --git a/docs/interfaces/MultifactorChallengeOptions.html b/docs/interfaces/MultifactorChallengeOptions.html deleted file mode 100644 index f599aac5..00000000 --- a/docs/interfaces/MultifactorChallengeOptions.html +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - MultifactorChallengeOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface MultifactorChallengeOptions

-
-
-
-

Options for multifactor challenge.

-
-
-
-
- interface MultifactorChallengeOptions - {
    authenticatorId?: string;
    challengeType?: string;
    mfaToken: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - - -
-
-
-
-

Properties

-
- - -
- authenticatorId?: - string -
-
-

The ID of the authenticator to challenge.

-
-
- -
-
- - -
- challengeType?: - string -
-
-

- A whitespace-separated list of the challenges types accepted by - your application. Accepted challenge types are oob or otp. - Excluding this parameter means that your client application - accepts all supported challenge types. -

-
-
- -
-
- - -
- mfaToken: - string -
-
-

The token received in the previous login response

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/MultifactorChallengeOptions.md b/docs/interfaces/MultifactorChallengeOptions.md new file mode 100644 index 00000000..4094f20f --- /dev/null +++ b/docs/interfaces/MultifactorChallengeOptions.md @@ -0,0 +1,47 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / MultifactorChallengeOptions + +# Interface: MultifactorChallengeOptions + +Defined in: [types.ts:480](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L480) + +Options for multifactor challenge. + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### authenticatorId? + +> `optional` **authenticatorId**: `string` + +Defined in: [types.ts:494](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L494) + +The ID of the authenticator to challenge. + +--- + +### challengeType? + +> `optional` **challengeType**: `string` + +Defined in: [types.ts:490](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L490) + +A whitespace-separated list of the challenges types accepted by your application. +Accepted challenge types are oob or otp. Excluding this parameter means that your client application +accepts all supported challenge types. + +--- + +### mfaToken + +> **mfaToken**: `string` + +Defined in: [types.ts:484](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L484) + +The token received in the previous login response diff --git a/docs/interfaces/PasswordRealmOptions.html b/docs/interfaces/PasswordRealmOptions.html deleted file mode 100644 index b7911721..00000000 --- a/docs/interfaces/PasswordRealmOptions.html +++ /dev/null @@ -1,560 +0,0 @@ - - - - - - PasswordRealmOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface PasswordRealmOptions

-
-
-
-

- Options for authenticating using the username & password - grant. -

-
-
-
-
- interface PasswordRealmOptions - {
    audience?: string;
    password: string;
    realm: string;
    scope?: string;
    username: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- audience?: - string -
-
-

- The identifier of Resource Server (RS) to be included as - audience (aud claim) of the issued access token -

-
-
- -
-
- - -
- password: - string -
-
-

The user's password

-
-
- -
-
- - -
- realm: - string -
-
-

The name of the Realm where to Auth (or connection name)

-
-
- -
-
- - -
- scope?: - string -
-
-

- The scopes requested for the issued tokens. e.g. - openid profile -

-
-
- -
-
- - -
- username: - string -
-
-

The user's username or email

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/PasswordRealmOptions.md b/docs/interfaces/PasswordRealmOptions.md new file mode 100644 index 00000000..6ea26546 --- /dev/null +++ b/docs/interfaces/PasswordRealmOptions.md @@ -0,0 +1,65 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / PasswordRealmOptions + +# Interface: PasswordRealmOptions + +Defined in: [types.ts:298](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L298) + +Options for authenticating using the username & password grant. + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### audience? + +> `optional` **audience**: `string` + +Defined in: [types.ts:314](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L314) + +The identifier of Resource Server (RS) to be included as audience (aud claim) of the issued access token + +--- + +### password + +> **password**: `string` + +Defined in: [types.ts:306](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L306) + +The user's password + +--- + +### realm + +> **realm**: `string` + +Defined in: [types.ts:310](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L310) + +The name of the Realm where to Auth (or connection name) + +--- + +### scope? + +> `optional` **scope**: `string` + +Defined in: [types.ts:318](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L318) + +The scopes requested for the issued tokens. e.g. `openid profile` + +--- + +### username + +> **username**: `string` + +Defined in: [types.ts:302](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L302) + +The user's username or email diff --git a/docs/interfaces/PasswordlessWithEmailOptions.html b/docs/interfaces/PasswordlessWithEmailOptions.html deleted file mode 100644 index b7093494..00000000 --- a/docs/interfaces/PasswordlessWithEmailOptions.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - PasswordlessWithEmailOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface PasswordlessWithEmailOptions

-
-
-
-

Options for requesting passwordless login using email

-
-
-
-
- interface PasswordlessWithEmailOptions - {
    authParams?: object;
    email: string;
    send?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- authParams?: - object -
-
-

Optional parameters, used when strategy is 'linḱ'

-
-
- -
-
- - -
- email: - string -
-
-

The email to send the link/code to

-
-
- -
-
- - -
- send?: - string -
-
-

- The passwordless strategy, either 'link' or - 'code' -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/PasswordlessWithEmailOptions.md b/docs/interfaces/PasswordlessWithEmailOptions.md new file mode 100644 index 00000000..43d51513 --- /dev/null +++ b/docs/interfaces/PasswordlessWithEmailOptions.md @@ -0,0 +1,45 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / PasswordlessWithEmailOptions + +# Interface: PasswordlessWithEmailOptions + +Defined in: [types.ts:340](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L340) + +Options for requesting passwordless login using email + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### authParams? + +> `optional` **authParams**: `object` + +Defined in: [types.ts:352](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L352) + +Optional parameters, used when strategy is 'linḱ' + +--- + +### email + +> **email**: `string` + +Defined in: [types.ts:344](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L344) + +The email to send the link/code to + +--- + +### send? + +> `optional` **send**: `string` + +Defined in: [types.ts:348](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L348) + +The passwordless strategy, either 'link' or 'code' diff --git a/docs/interfaces/PasswordlessWithSMSOptions.html b/docs/interfaces/PasswordlessWithSMSOptions.html deleted file mode 100644 index c90abe47..00000000 --- a/docs/interfaces/PasswordlessWithSMSOptions.html +++ /dev/null @@ -1,461 +0,0 @@ - - - - - - PasswordlessWithSMSOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface PasswordlessWithSMSOptions

-
-
-
-

Options for requesting passwordless login using SMS

-
-
-
-
- interface PasswordlessWithSMSOptions - {
    authParams?: object;
    phoneNumber: string;
    send?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- authParams?: - object -
-
-

Optional passwordless parameters

-
-
- -
-
- - -
- phoneNumber: - string -
-
-

The phone number to send the link/code to

-
-
- -
-
- - -
- send?: - string -
-
-

- The passwordless strategy, either 'link' or - 'code' -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/PasswordlessWithSMSOptions.md b/docs/interfaces/PasswordlessWithSMSOptions.md new file mode 100644 index 00000000..f5d9e7d1 --- /dev/null +++ b/docs/interfaces/PasswordlessWithSMSOptions.md @@ -0,0 +1,45 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / PasswordlessWithSMSOptions + +# Interface: PasswordlessWithSMSOptions + +Defined in: [types.ts:359](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L359) + +Options for requesting passwordless login using SMS + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### authParams? + +> `optional` **authParams**: `object` + +Defined in: [types.ts:371](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L371) + +Optional passwordless parameters + +--- + +### phoneNumber + +> **phoneNumber**: `string` + +Defined in: [types.ts:363](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L363) + +The phone number to send the link/code to + +--- + +### send? + +> `optional` **send**: `string` + +Defined in: [types.ts:367](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L367) + +The passwordless strategy, either 'link' or 'code' diff --git a/docs/interfaces/PatchUserOptions.html b/docs/interfaces/PatchUserOptions.html deleted file mode 100644 index 38f4da1d..00000000 --- a/docs/interfaces/PatchUserOptions.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - PatchUserOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface PatchUserOptions

-
-
- interface PatchUserOptions - {
    id: string;
    metadata: object;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- id: - string -
- -
-
- - -
- metadata: - object -
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/PatchUserOptions.md b/docs/interfaces/PatchUserOptions.md new file mode 100644 index 00000000..40f882b1 --- /dev/null +++ b/docs/interfaces/PatchUserOptions.md @@ -0,0 +1,29 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / PatchUserOptions + +# Interface: PatchUserOptions + +Defined in: [types.ts:196](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L196) + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### id + +> **id**: `string` + +Defined in: [types.ts:197](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L197) + +--- + +### metadata + +> **metadata**: `object` + +Defined in: [types.ts:198](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L198) diff --git a/docs/interfaces/RefreshTokenOptions.html b/docs/interfaces/RefreshTokenOptions.html deleted file mode 100644 index 83f093b6..00000000 --- a/docs/interfaces/RefreshTokenOptions.html +++ /dev/null @@ -1,403 +0,0 @@ - - - - - - RefreshTokenOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface RefreshTokenOptions

-
-
-
-

Refresh token parameters

-
-
-
-
- interface RefreshTokenOptions - {
    refreshToken: string;
    scope?: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- refreshToken: - string -
-
-

The issued refresh token

-
-
- -
-
- - -
- scope?: - string -
-
-

- The scopes requested for the issued tokens. e.g. - openid profile -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/RefreshTokenOptions.md b/docs/interfaces/RefreshTokenOptions.md new file mode 100644 index 00000000..ae75cb20 --- /dev/null +++ b/docs/interfaces/RefreshTokenOptions.md @@ -0,0 +1,35 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / RefreshTokenOptions + +# Interface: RefreshTokenOptions + +Defined in: [types.ts:325](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L325) + +Refresh token parameters + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### refreshToken + +> **refreshToken**: `string` + +Defined in: [types.ts:329](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L329) + +The issued refresh token + +--- + +### scope? + +> `optional` **scope**: `string` + +Defined in: [types.ts:333](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L333) + +The scopes requested for the issued tokens. e.g. `openid profile` diff --git a/docs/interfaces/ResetPasswordOptions.html b/docs/interfaces/ResetPasswordOptions.html deleted file mode 100644 index 182484dc..00000000 --- a/docs/interfaces/ResetPasswordOptions.html +++ /dev/null @@ -1,401 +0,0 @@ - - - - - - ResetPasswordOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface ResetPasswordOptions

-
-
-
-

Options for resetting a user's password.

-
-
-
-
- interface ResetPasswordOptions - {
    connection: string;
    email: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- connection: - string -
-
-

The name of the database connection of the user

-
-
- -
-
- - -
- email: - string -
-
-

The user's email

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/ResetPasswordOptions.md b/docs/interfaces/ResetPasswordOptions.md new file mode 100644 index 00000000..f27f2256 --- /dev/null +++ b/docs/interfaces/ResetPasswordOptions.md @@ -0,0 +1,35 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / ResetPasswordOptions + +# Interface: ResetPasswordOptions + +Defined in: [types.ts:522](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L522) + +Options for resetting a user's password. + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### connection + +> **connection**: `string` + +Defined in: [types.ts:530](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L530) + +The name of the database connection of the user + +--- + +### email + +> **email**: `string` + +Defined in: [types.ts:526](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L526) + +The user's email diff --git a/docs/interfaces/RevokeOptions.html b/docs/interfaces/RevokeOptions.html deleted file mode 100644 index 4ce97464..00000000 --- a/docs/interfaces/RevokeOptions.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - RevokeOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface RevokeOptions

-
-
-
-

Options for the revoke refresh token endpoint.

-
-
-
-
- interface RevokeOptions - {
    refreshToken: string;
    [key: - string]: any;
} -
-
-

Indexable

-
- [key: - string]: any -
-
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- refreshToken: - string -
-
-

The user's issued refresh token

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/RevokeOptions.md b/docs/interfaces/RevokeOptions.md new file mode 100644 index 00000000..ed6ce07d --- /dev/null +++ b/docs/interfaces/RevokeOptions.md @@ -0,0 +1,25 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / RevokeOptions + +# Interface: RevokeOptions + +Defined in: [types.ts:501](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L501) + +Options for the revoke refresh token endpoint. + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### refreshToken + +> **refreshToken**: `string` + +Defined in: [types.ts:505](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L505) + +The user's issued refresh token diff --git a/docs/interfaces/Types.Auth0ContextInterface.html b/docs/interfaces/Types.Auth0ContextInterface.html deleted file mode 100644 index 0e1cf4e9..00000000 --- a/docs/interfaces/Types.Auth0ContextInterface.html +++ /dev/null @@ -1,3059 +0,0 @@ - - - - - - Auth0ContextInterface | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface Auth0ContextInterface<TUser>

-
-
- interface Auth0ContextInterface<TUser> - {
    authorize: ((parameters?, - options?) => Promise<undefined | Credentials>);
    authorizeWithEmail: ((parameters) => Promise<undefined | Credentials>);
    authorizeWithExchangeNativeSocial: ((parameters) => Promise<undefined | Credentials>);
    authorizeWithOOB: ((parameters) => Promise<undefined | Credentials>);
    authorizeWithOTP: ((parameters) => Promise<undefined | Credentials>);
    authorizeWithPasswordRealm: ((parameters) => Promise<undefined | Credentials>);
    authorizeWithRecoveryCode: ((parameters) => Promise<undefined | Credentials>);
    authorizeWithSMS: ((parameters) => Promise<undefined | Credentials>);
    cancelWebAuth: (() => Promise<void>);
    clearCredentials: (() => Promise<void>);
    clearSession: ((parameters?, - options?) => Promise<void>);
    error: null | BaseError;
    getCredentials: ((scope?, - minTtl?, - parameters?, - forceRefresh?) => Promise<undefined | Credentials>);
    hasValidCredentials: ((minTtl?) => Promise<boolean>);
    isLoading: boolean;
    resetPassword: ((parameters) => Promise<void>);
    revokeRefreshToken: ((parameters) => Promise<void>);
    sendEmailCode: ((parameters) => Promise<void>);
    sendMultifactorChallenge: ((parameters) => Promise<void>);
    sendSMSCode: ((parameters) => Promise<void>);
    user: null | TUser;
} -
-
-

Type Parameters

- -
-
-

- Hierarchy (view full) -

- -
- -
-
-
- - - - -
-
-
-
-

Properties

-
- - -
- authorize: - ((parameters?, - options?) => Promise<undefined | Credentials>) -
-
-

- Authorize the user using Auth0 Universal Login. See - WebAuth#authorize -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (parameters?, - options?): Promise<undefined | Credentials> -
    • -
    • -
      -

      Parameters

      -
        -
      • - Optional - parameters: - WebAuthorizeParameters -
        -

        - The parameters that are sent to the - /authorize endpoint. -

        -
        -
        -
      • -
      • - Optional - options: - WebAuthorizeOptions -
        -

        - Options for customizing the SDK's handling - of the authorize call -

        -
        -
        -
      • -
      -
      -

      - Returns Promise<undefined | Credentials> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- authorizeWithEmail: - ((parameters) => Promise<undefined | Credentials>) -
-
-

- Authorize the user using an email code. See - Auth#loginWithEmail -

-
-
-

Type declaration

- -
-
- -
-
- - -
- authorizeWithExchangeNativeSocial: - ((parameters) => Promise<undefined | Credentials>) -
-
-

- Authorize user with credentials using the Password Realm Grant. - See - Auth#passwordRealm -

-
-
-

Type declaration

- -
-
- -
-
- - -
- authorizeWithOOB: - ((parameters) => Promise<undefined | Credentials>) -
-
-

- Authorize the user using an Out Of Band authentication code. See - Auth#loginWithOOB -

-
-
-

Type declaration

- -
-
- -
-
- - -
- authorizeWithOTP: - ((parameters) => Promise<undefined | Credentials>) -
-
-

- Autohrize the user using a One Time Password code. See - Auth#loginWithOTP. -

-
-
-

Type declaration

- -
-
- -
-
- - -
- authorizeWithPasswordRealm: - ((parameters) => Promise<undefined | Credentials>) -
-
-

- Authorize user with credentials using the Password Realm Grant. - See - Auth#passwordRealm -

-
-
-

Type declaration

- -
-
- -
-
- - -
- authorizeWithRecoveryCode: - ((parameters) => Promise<undefined | Credentials>) -
-
-

- Authorize the user using a multi-factor authentication Recovery - Code. See - Auth#loginWithRecoveryCode -

-
-
-

Type declaration

- -
-
- -
-
- - -
- authorizeWithSMS: - ((parameters) => Promise<undefined | Credentials>) -
-
-

- Authorize the user using a SMS code. See - Auth#loginWithSMS -

-
-
-

Type declaration

- -
-
- -
-
- - -
- cancelWebAuth: - (() => Promise<void>) -
-
-

- Cancel any ongoing Universal Login transaction. This works only - on iOS and not on any other platforms -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (): Promise<void> -
    • -
    • -

      - Returns Promise<void> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- clearCredentials: - (() => Promise<void>) -
-
-

- Clears the user's credentials without clearing their web - session and logs them out. -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (): Promise<void> -
    • -
    • -

      - Returns Promise<void> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- clearSession: - ((parameters?, - options?) => Promise<void>) -
-
-

- Clears the user's web session, credentials and logs them - out. See - WebAuth#clearSession -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (parameters?, - options?): Promise<void> -
    • -
    • -
      -

      Parameters

      -
        -
      • - Optional - parameters: - ClearSessionParameters -
        -

        - Additional parameters to send to the Auth0 - logout endpoint. -

        -
        -
        -
      • -
      • - Optional - options: - ClearSessionOptions -
        -

        - Options for configuring the SDK's clear - session behaviour. -

        -
        -
        -
      • -
      -
      -

      - Returns Promise<void> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- error: - null | BaseError -
-
-

An object representing the last exception

-
-
- -
-
- - -
- getCredentials: - ((scope?, - minTtl?, - parameters?, - forceRefresh?) => Promise<undefined | Credentials>) -
-
-

- Gets the user's credentials from the native credential - store. If credentials have expired, they are automatically - refreshed by default. See - CredentialsManager#getCredentials -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (scope?, - minTtl?, - parameters?, - forceRefresh?): Promise<undefined | Credentials> -
    • -
    • -
      -

      Parameters

      -
        -
      • - Optional - scope: - string -
        -

        The scopes used to get the credentials

        -
        -
        -
      • -
      • - Optional - minTtl: - number -
        -

        - The minimum time in seconds that the access - token should last before expiration -

        -
        -
        -
      • -
      • - Optional - parameters: Record<string, unknown> -
        -

        - Any additional parameters to send in the request - to refresh expired credentials. -

        -
        -
        -
      • -
      • - Optional - forceRefresh: - boolean -
        -

        - If true, credentials are always - refreshed regardless of their expiry, provided a - valid refresh token is available. -

        -
        -
        -
      • -
      -
      -

      - Returns Promise<undefined | Credentials> -

      -
    • -
    -
  • -
-
-

Returns

- -
-
- - -
- hasValidCredentials: - ((minTtl?) => Promise<boolean>) -
-
-

- Whether the SDK currently holds valid, unexpired credentials. -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (minTtl?): Promise<boolean> -
    • -
    • -
      -

      Parameters

      -
        -
      • - Optional - minTtl: - number -
        -

        - The minimum time in seconds that the access - token should last before expiration -

        -
        -
        -
      • -
      -
      -

      - Returns Promise<boolean> -

      -
    • -
    -
  • -
-
-
-

Returns

-

- true if there are valid credentials. Otherwise, - false. -

-
- -
-
- - -
- isLoading: - boolean -
-
-

- A flag that is true until the state knows that a user is either - logged in or not -

-
-
- -
-
- - -
- resetPassword: - ((parameters) => Promise<void>) -
-
-

- Request an email with instructions to change password of a user - Auth#resetPassword -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (parameters): Promise<void> -
    • -
    • -
      -

      Parameters

      - -
      -

      - Returns Promise<void> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- revokeRefreshToken: - ((parameters) => Promise<void>) -
-
-

- Revokes an issued refresh token. See - Auth#revoke -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (parameters): Promise<void> -
    • -
    • -
      -

      Parameters

      - -
      -

      - Returns Promise<void> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- sendEmailCode: - ((parameters) => Promise<void>) -
-
-

- Start the passwordless email login flow. See - Auth#passwordlessWithEmail -

-
-
-

Type declaration

-
    -
  • - -
  • -
-
-
- -
-
- - -
- sendMultifactorChallenge: - ((parameters) => Promise<void>) -
-
-

- Send a challenge for multi-factor authentication. See - Auth#multifactorChallenge -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (parameters): Promise<void> -
    • -
    • -
      -

      Parameters

      - -
      -

      - Returns Promise<void> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- sendSMSCode: - ((parameters) => Promise<void>) -
-
-

- Start the passwordless SMS login flow. See - Auth#passwordlessWithSMS -

-
-
-

Type declaration

-
    -
  • -
      -
    • - (parameters): Promise<void> -
    • -
    • -
      -

      Parameters

      - -
      -

      - Returns Promise<void> -

      -
    • -
    -
  • -
-
-
- -
-
- - -
- user: - null | TUser -
-
-

- The user profile as decoded from the ID token after - authentication -

-
-
- -
-
-
- -
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/Types.AuthState.html b/docs/interfaces/Types.AuthState.html deleted file mode 100644 index e3e038ac..00000000 --- a/docs/interfaces/Types.AuthState.html +++ /dev/null @@ -1,496 +0,0 @@ - - - - - - AuthState | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface AuthState<TUser>

-
-
- interface AuthState<TUser> - {
    error: null | BaseError;
    isLoading: boolean;
    user: null | TUser;
} -
-
-

Type Parameters

- -
-
-

- Hierarchy (view full) -

- -
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- error: - null | BaseError -
-
-

An object representing the last exception

-
-
- -
-
- - -
- isLoading: - boolean -
-
-

- A flag that is true until the state knows that a user is either - logged in or not -

-
-
- -
-
- - -
- user: - null | TUser -
-
-

- The user profile as decoded from the ID token after - authentication -

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/UserInfoOptions.html b/docs/interfaces/UserInfoOptions.html deleted file mode 100644 index e1bc1a52..00000000 --- a/docs/interfaces/UserInfoOptions.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - UserInfoOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface UserInfoOptions

-
-
-
-

Options for accessing the /userinfo endpoint.

-
-
-
-
- interface UserInfoOptions - {
    token: string;
} -
- -
-
-
- - - -
-
-

Properties

- -
-
-
-
-
-
-

Properties

-
- - -
- token: - string -
-
-

The user's access token

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/UserInfoOptions.md b/docs/interfaces/UserInfoOptions.md new file mode 100644 index 00000000..44f64801 --- /dev/null +++ b/docs/interfaces/UserInfoOptions.md @@ -0,0 +1,21 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / UserInfoOptions + +# Interface: UserInfoOptions + +Defined in: [types.ts:512](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L512) + +Options for accessing the `/userinfo` endpoint. + +## Properties + +### token + +> **token**: `string` + +Defined in: [types.ts:516](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L516) + +The user's access token diff --git a/docs/interfaces/WebAuthorizeOptions.html b/docs/interfaces/WebAuthorizeOptions.html deleted file mode 100644 index 2b3b939b..00000000 --- a/docs/interfaces/WebAuthorizeOptions.html +++ /dev/null @@ -1,636 +0,0 @@ - - - - - - WebAuthorizeOptions | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface WebAuthorizeOptions

-
-
-
-

- Options for controlling the SDK's behaviour when calling the - /authorize endpoint. -

-
-
-
-
- interface WebAuthorizeOptions - {
    customScheme?: string;
    ephemeralSession?: boolean;
    leeway?: number;
    useLegacyCallbackUrl?: boolean;
    useSFSafariViewController?: boolean | {
        presentationStyle?: SafariViewControllerPresentationStyle;
    };
} -
- -
-
-
- - - - -
-
-
-
-

Properties

-
- - -
- customScheme?: - string -
-
-

- Android only: Custom scheme to build the - callback URL with. -

-
-
- -
-
- - -
- ephemeralSession?: - boolean -
-
-

- iOS only: Disable Single-Sign-On (SSO). It only - affects iOS with versions 13 and above. -

-
-
-

Default

-

false

-
- -
-
- - -
- leeway?: - number -
-
-

- The amount of leeway, in seconds, to accommodate potential clock - skew when validating an ID token's claims. -

-
-
-

Default

-

60 seconds.

-
- -
-
- - -
- useLegacyCallbackUrl?: - boolean -
-
-

- This will use older callback URL. See - https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md#callback-url-migration - for more details. -

-
-
- -
-
- - -
- useSFSafariViewController?: - boolean | {
    presentationStyle?: SafariViewControllerPresentationStyle;
} -
-
-

- iOS only: Uses - SFSafariViewController instead of - ASWebAuthenticationSession. If empty object is set, - the presentationStyle defaults to - SafariViewControllerPresentationStyle.fullScreen -

-

- This can be used as a boolean value or as an object which sets - the presentationStyle. See the examples below for - reference -

-
-
-

Type declaration

- -
-
-

Example

-
await authorize({}, {useSFSafariViewController: true});
-
-

or

-

Example

-
await authorize({}, {useSFSafariViewController: {presentationStyle: SafariViewControllerPresentationStyle.fullScreen}});
-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/WebAuthorizeOptions.md b/docs/interfaces/WebAuthorizeOptions.md new file mode 100644 index 00000000..950d67b6 --- /dev/null +++ b/docs/interfaces/WebAuthorizeOptions.md @@ -0,0 +1,90 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / WebAuthorizeOptions + +# Interface: WebAuthorizeOptions + +Defined in: [types.ts:110](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L110) + +Options for controlling the SDK's behaviour when calling the `/authorize` endpoint. + +## Properties + +### customScheme? + +> `optional` **customScheme**: `string` + +Defined in: [types.ts:124](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L124) + +Custom scheme to build the callback URL with. + +--- + +### ephemeralSession? + +> `optional` **ephemeralSession**: `boolean` + +Defined in: [types.ts:120](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L120) + +**iOS only**: Disable Single-Sign-On (SSO). It only affects iOS with versions 13 and above. + +#### Default + +`false` + +--- + +### leeway? + +> `optional` **leeway**: `number` + +Defined in: [types.ts:115](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L115) + +The amount of leeway, in seconds, to accommodate potential clock skew when validating an ID token's claims. + +#### Default + +60 seconds. + +--- + +### useLegacyCallbackUrl? + +> `optional` **useLegacyCallbackUrl**: `boolean` + +Defined in: [types.ts:128](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L128) + +This will use older callback URL. See [https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md#callback-url-migration](https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md#callback-url-migration) for more details. + +--- + +### useSFSafariViewController? + +> `optional` **useSFSafariViewController**: `boolean` \| \{ `presentationStyle`: [`SafariViewControllerPresentationStyle`](../enumerations/SafariViewControllerPresentationStyle.md); \} + +Defined in: [types.ts:146](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L146) + +**iOS only:** Uses `SFSafariViewController` instead of `ASWebAuthenticationSession`. If empty object is set, the presentationStyle defaults to [SafariViewControllerPresentationStyle.fullScreen](../enumerations/SafariViewControllerPresentationStyle.md#fullscreen) + +This can be used as a boolean value or as an object which sets the `presentationStyle`. See the examples below for reference + +#### Examples + +```typescript +await authorize({}, { useSFSafariViewController: true }); +``` + +or + +```typescript +await authorize( + {}, + { + useSFSafariViewController: { + presentationStyle: SafariViewControllerPresentationStyle.fullScreen, + }, + } +); +``` diff --git a/docs/interfaces/WebAuthorizeParameters.html b/docs/interfaces/WebAuthorizeParameters.html deleted file mode 100644 index 2f250982..00000000 --- a/docs/interfaces/WebAuthorizeParameters.html +++ /dev/null @@ -1,862 +0,0 @@ - - - - - - WebAuthorizeParameters | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Interface WebAuthorizeParameters

-
-
-
-

- Parameters that are sent to a call to the - /authorize endpoint. -

-
-
-
-
- interface WebAuthorizeParameters - {
    additionalParameters?: {
        [key: - string]: string;
    };
    audience?: string;
    connection?: string;
    invitationUrl?: string;
    maxAge?: number;
    nonce?: string;
    organization?: string;
    redirectUrl?: string;
    scope?: string;
    state?: string;
} -
- -
-
-
- - - - -
-
-
-
-

Properties

-
- - -
- additionalParameters?: - {
    [key: - string]: string;
} -
-
-

- Any additional arbitrary parameters to send along in the URL. -

-
-
-

Type declaration

-
    -
  • -
    - [key: - string]: string -
    -
  • -
-
-
- -
-
- - -
- audience?: - string -
-
-

- The intended API identifier that will be the consumer for the - issued access token. -

-
-
- -
-
- - -
- connection?: - string -
-
-

The database connection in which to look for users.

-
-
- -
-
- - -
- invitationUrl?: - string -
-
-

- The invitation URL for those users who have been invited to join - a specific organization. -

-
-
- -
-
- - -
- maxAge?: - number -
-
-

- The maximum age in seconds that the resulting ID token should be - issued for. -

-
-
- -
-
- - -
- nonce?: - string -
-
-

- One-time random value that is used to prevent replay attacks. -

-
-
- -
-
- - -
- organization?: - string -
-
-

- The organization in which user's should be authenticated - into. -

-
-
- -
-
- - -
- redirectUrl?: - string -
-
-

- Specify a custom redirect URL to be used. Normally, you - wouldn't need to call this method manually as the default - value is autogenerated for you. -

-

- If you are using this, ensure a proper redirect URL is - constructed in the following format Android: - {YOUR_APP_PACKAGE_NAME}.auth0://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback - iOS: - {PRODUCT_BUNDLE_IDENTIFIER}.auth0://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback -

-

- If you have useLegacyCallbackUrl set to true then - the redirect URL should in the format Android: - {YOUR_APP_PACKAGE_NAME}://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback - iOS: - {PRODUCT_BUNDLE_IDENTIFIER}://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback -

-
-
- -
-
- - -
- scope?: - string -
-
-

- The scopes requested for the issued tokens. e.g. - openid profile -

-
-
- -
-
- - -
- state?: - string -
-
-

Random string to prevent CSRF attacks.

-
-
- -
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/interfaces/WebAuthorizeParameters.md b/docs/interfaces/WebAuthorizeParameters.md new file mode 100644 index 00000000..f2dca379 --- /dev/null +++ b/docs/interfaces/WebAuthorizeParameters.md @@ -0,0 +1,123 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / WebAuthorizeParameters + +# Interface: WebAuthorizeParameters + +Defined in: [types.ts:56](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L56) + +Parameters that are sent to a call to the `/authorize` endpoint. + +## Properties + +### additionalParameters? + +> `optional` **additionalParameters**: `object` + +Defined in: [types.ts:104](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L104) + +Any additional arbitrary parameters to send along in the URL. + +#### Index Signature + +\[`key`: `string`\]: `string` + +--- + +### audience? + +> `optional` **audience**: `string` + +Defined in: [types.ts:68](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L68) + +The intended API identifier that will be the consumer for the issued access token. + +--- + +### connection? + +> `optional` **connection**: `string` + +Defined in: [types.ts:76](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L76) + +The database connection in which to look for users. + +--- + +### invitationUrl? + +> `optional` **invitationUrl**: `string` + +Defined in: [types.ts:88](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L88) + +The invitation URL for those users who have been invited to join a specific organization. + +--- + +### maxAge? + +> `optional` **maxAge**: `number` + +Defined in: [types.ts:80](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L80) + +The maximum age in seconds that the resulting ID token should be issued for. + +--- + +### nonce? + +> `optional` **nonce**: `string` + +Defined in: [types.ts:64](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L64) + +One-time random value that is used to prevent replay attacks. + +--- + +### organization? + +> `optional` **organization**: `string` + +Defined in: [types.ts:84](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L84) + +The organization in which user's should be authenticated into. + +--- + +### redirectUrl? + +> `optional` **redirectUrl**: `string` + +Defined in: [types.ts:100](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L100) + +Specify a custom redirect URL to be used. Normally, you wouldn't need to call this method manually as the default value is autogenerated for you. + +If you are using this, ensure a proper redirect URL is constructed in the following format +Android: {YOUR_APP_PACKAGE_NAME}.auth0://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback +iOS: {PRODUCT_BUNDLE_IDENTIFIER}.auth0://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback + +If you have `useLegacyCallbackUrl` set to true then the redirect URL should in the format +Android: {YOUR_APP_PACKAGE_NAME}://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback +iOS: {PRODUCT_BUNDLE_IDENTIFIER}://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback + +--- + +### scope? + +> `optional` **scope**: `string` + +Defined in: [types.ts:72](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L72) + +The scopes requested for the issued tokens. e.g. `openid profile` + +--- + +### state? + +> `optional` **state**: `string` + +Defined in: [types.ts:60](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L60) + +Random string to prevent CSRF attacks. diff --git a/docs/modules.html b/docs/modules.html deleted file mode 100644 index 14b9fc00..00000000 --- a/docs/modules.html +++ /dev/null @@ -1,511 +0,0 @@ - - - - - - react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
- -
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/modules/Types.html b/docs/modules/Types.html deleted file mode 100644 index fcfb7c6c..00000000 --- a/docs/modules/Types.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - Types | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Module Types

-
-
-
-

Index

-
-

Classes

- -
-
-

Interfaces

- -
-
-

Type Aliases

- -
-
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/type-aliases/Credentials.md b/docs/type-aliases/Credentials.md new file mode 100644 index 00000000..29001675 --- /dev/null +++ b/docs/type-aliases/Credentials.md @@ -0,0 +1,75 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / Credentials + +# Type Alias: Credentials + +> **Credentials** = `object` + +Defined in: [types.ts:1](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L1) + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### accessToken + +> **accessToken**: `string` + +Defined in: [types.ts:9](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L9) + +The token used to make API calls + +--- + +### expiresAt + +> **expiresAt**: `number` + +Defined in: [types.ts:17](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L17) + +Used to denote when the token will expire, as a UNIX timestamp + +--- + +### idToken + +> **idToken**: `string` + +Defined in: [types.ts:5](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L5) + +A token in JWT format that has user claims + +--- + +### refreshToken? + +> `optional` **refreshToken**: `string` + +Defined in: [types.ts:21](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L21) + +The token used to refresh the access token + +--- + +### scope? + +> `optional` **scope**: `string` + +Defined in: [types.ts:25](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L25) + +Represents the scope of the current token + +--- + +### tokenType + +> **tokenType**: `string` + +Defined in: [types.ts:13](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L13) + +The type of the token, e.g.: Bearer diff --git a/docs/type-aliases/MultifactorChallengeOOBResponse.md b/docs/type-aliases/MultifactorChallengeOOBResponse.md new file mode 100644 index 00000000..a9394ba7 --- /dev/null +++ b/docs/type-aliases/MultifactorChallengeOOBResponse.md @@ -0,0 +1,17 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / MultifactorChallengeOOBResponse + +# Type Alias: MultifactorChallengeOOBResponse + +> **MultifactorChallengeOOBResponse** = [`MultifactorChallengeOTPResponse`](MultifactorChallengeOTPResponse.md) & `object` + +Defined in: [types.ts:583](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L583) + +## Type declaration + +### oobCode + +> **oobCode**: `string` diff --git a/docs/type-aliases/MultifactorChallengeOOBWithBindingResponse.md b/docs/type-aliases/MultifactorChallengeOOBWithBindingResponse.md new file mode 100644 index 00000000..bcb8548f --- /dev/null +++ b/docs/type-aliases/MultifactorChallengeOOBWithBindingResponse.md @@ -0,0 +1,17 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / MultifactorChallengeOOBWithBindingResponse + +# Type Alias: MultifactorChallengeOOBWithBindingResponse + +> **MultifactorChallengeOOBWithBindingResponse** = [`MultifactorChallengeOOBResponse`](MultifactorChallengeOOBResponse.md) & `object` + +Defined in: [types.ts:587](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L587) + +## Type declaration + +### bindingMethod + +> **bindingMethod**: `string` diff --git a/docs/type-aliases/MultifactorChallengeOTPResponse.md b/docs/type-aliases/MultifactorChallengeOTPResponse.md new file mode 100644 index 00000000..4d8e84dd --- /dev/null +++ b/docs/type-aliases/MultifactorChallengeOTPResponse.md @@ -0,0 +1,19 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / MultifactorChallengeOTPResponse + +# Type Alias: MultifactorChallengeOTPResponse + +> **MultifactorChallengeOTPResponse** = `object` + +Defined in: [types.ts:581](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L581) + +## Properties + +### challengeType + +> **challengeType**: `string` + +Defined in: [types.ts:581](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L581) diff --git a/docs/type-aliases/MultifactorChallengeResponse.md b/docs/type-aliases/MultifactorChallengeResponse.md new file mode 100644 index 00000000..59da4b32 --- /dev/null +++ b/docs/type-aliases/MultifactorChallengeResponse.md @@ -0,0 +1,11 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / MultifactorChallengeResponse + +# Type Alias: MultifactorChallengeResponse + +> **MultifactorChallengeResponse** = [`MultifactorChallengeOTPResponse`](MultifactorChallengeOTPResponse.md) \| [`MultifactorChallengeOOBResponse`](MultifactorChallengeOOBResponse.md) \| [`MultifactorChallengeOOBWithBindingResponse`](MultifactorChallengeOOBWithBindingResponse.md) + +Defined in: [types.ts:592](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L592) diff --git a/docs/type-aliases/User.md b/docs/type-aliases/User.md new file mode 100644 index 00000000..5cf672ba --- /dev/null +++ b/docs/type-aliases/User.md @@ -0,0 +1,175 @@ +[**react-native-auth0**](../README.md) + +--- + +[react-native-auth0](../globals.md) / User + +# Type Alias: User + +> **User** = `object` + +Defined in: [types.ts:29](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L29) + +## Indexable + +\[`key`: `string`\]: `any` + +## Properties + +### address? + +> `optional` **address**: `string` + +Defined in: [types.ts:47](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L47) + +--- + +### birthdate? + +> `optional` **birthdate**: `string` + +Defined in: [types.ts:42](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L42) + +--- + +### email? + +> `optional` **email**: `string` + +Defined in: [types.ts:39](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L39) + +--- + +### emailVerified? + +> `optional` **emailVerified**: `boolean` + +Defined in: [types.ts:40](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L40) + +--- + +### familyName? + +> `optional` **familyName**: `string` + +Defined in: [types.ts:32](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L32) + +--- + +### gender? + +> `optional` **gender**: `string` + +Defined in: [types.ts:41](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L41) + +--- + +### givenName? + +> `optional` **givenName**: `string` + +Defined in: [types.ts:31](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L31) + +--- + +### locale? + +> `optional` **locale**: `string` + +Defined in: [types.ts:44](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L44) + +--- + +### middleName? + +> `optional` **middleName**: `string` + +Defined in: [types.ts:33](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L33) + +--- + +### name? + +> `optional` **name**: `string` + +Defined in: [types.ts:30](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L30) + +--- + +### nickname? + +> `optional` **nickname**: `string` + +Defined in: [types.ts:34](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L34) + +--- + +### phoneNumber? + +> `optional` **phoneNumber**: `string` + +Defined in: [types.ts:45](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L45) + +--- + +### phoneNumberVerified? + +> `optional` **phoneNumberVerified**: `boolean` + +Defined in: [types.ts:46](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L46) + +--- + +### picture? + +> `optional` **picture**: `string` + +Defined in: [types.ts:37](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L37) + +--- + +### preferredUsername? + +> `optional` **preferredUsername**: `string` + +Defined in: [types.ts:35](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L35) + +--- + +### profile? + +> `optional` **profile**: `string` + +Defined in: [types.ts:36](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L36) + +--- + +### sub? + +> `optional` **sub**: `string` + +Defined in: [types.ts:49](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L49) + +--- + +### updatedAt? + +> `optional` **updatedAt**: `string` + +Defined in: [types.ts:48](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L48) + +--- + +### website? + +> `optional` **website**: `string` + +Defined in: [types.ts:38](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L38) + +--- + +### zoneinfo? + +> `optional` **zoneinfo**: `string` + +Defined in: [types.ts:43](https://github.com/auth0/react-native-auth0/blob/64b3136e2ba68da80f979438fc7bc3abab9becdd/src/types.ts#L43) diff --git a/docs/types/Credentials.html b/docs/types/Credentials.html deleted file mode 100644 index 5c325978..00000000 --- a/docs/types/Credentials.html +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - Credentials | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias Credentials

-
-
- Credentials: - {
    accessToken: string;
    expiresAt: number;
    idToken: string;
    refreshToken?: string;
    scope?: string;
    tokenType: string;
    [key: - string]: any;
} -
-
-

Type declaration

-
    -
  • -
    - [key: - string]: any -
    -
  • -
  • -
    - accessToken: string -
    -
    -

    The token used to make API calls

    -
    -
    -
  • -
  • -
    - expiresAt: number -
    -
    -

    - Used to denote when the token will expire, as a UNIX timestamp -

    -
    -
    -
  • -
  • -
    - idToken: string -
    -
    -

    A token in JWT format that has user claims

    -
    -
    -
  • -
  • -
    - Optional - refreshToken?: string -
    -
    -

    The token used to refresh the access token

    -
    -
    -
  • -
  • -
    - Optional - scope?: string -
    -
    -

    Represents the scope of the current token

    -
    -
    -
  • -
  • -
    - tokenType: string -
    -
    -

    The type of the token, e.g.: Bearer

    -
    -
    -
  • -
-
- -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/types/MultifactorChallengeOOBResponse.html b/docs/types/MultifactorChallengeOOBResponse.html deleted file mode 100644 index aac664cb..00000000 --- a/docs/types/MultifactorChallengeOOBResponse.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - MultifactorChallengeOOBResponse | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias MultifactorChallengeOOBResponse

-
-
- MultifactorChallengeOOBResponse: - MultifactorChallengeOTPResponse & {
    oobCode: string;
} -
-
-

Type declaration

-
    -
  • -
    - oobCode: string -
    -
  • -
-
- -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/types/MultifactorChallengeOOBWithBindingResponse.html b/docs/types/MultifactorChallengeOOBWithBindingResponse.html deleted file mode 100644 index 2751e99b..00000000 --- a/docs/types/MultifactorChallengeOOBWithBindingResponse.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - MultifactorChallengeOOBWithBindingResponse | react-native-auth0 - - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias MultifactorChallengeOOBWithBindingResponse

-
-
- MultifactorChallengeOOBWithBindingResponse: - MultifactorChallengeOOBResponse & {
    bindingMethod: string;
} -
-
-

Type declaration

-
    -
  • -
    - bindingMethod: string -
    -
  • -
-
- -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/types/MultifactorChallengeOTPResponse.html b/docs/types/MultifactorChallengeOTPResponse.html deleted file mode 100644 index dd83f6b2..00000000 --- a/docs/types/MultifactorChallengeOTPResponse.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - MultifactorChallengeOTPResponse | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias MultifactorChallengeOTPResponse

-
-
- MultifactorChallengeOTPResponse: - {
    challengeType: string;
} -
-
-

Type declaration

-
    -
  • -
    - challengeType: string -
    -
  • -
-
- -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/types/MultifactorChallengeResponse.html b/docs/types/MultifactorChallengeResponse.html deleted file mode 100644 index 2e790d2a..00000000 --- a/docs/types/MultifactorChallengeResponse.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - - MultifactorChallengeResponse | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias MultifactorChallengeResponse

-
- - -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/types/Types.Auth0Response.html b/docs/types/Types.Auth0Response.html deleted file mode 100644 index b0de9496..00000000 --- a/docs/types/Types.Auth0Response.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - Auth0Response | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias Auth0Response<TData>

-
-
- Auth0Response<TData>: - {
    headers?: Headers;
    json?: TData;
    ok?: boolean;
    status: number;
    text?: string;
} -
-
-

Type Parameters

-
    -
  • - TData -
  • -
-
-
-

Type declaration

-
    -
  • -
    - Optional - headers?: Headers -
    -
  • -
  • -
    - Optional - json?: TData -
    -
  • -
  • -
    - Optional - ok?: boolean -
    -
  • -
  • -
    - status: number -
    -
  • -
  • -
    - Optional - text?: string -
    -
  • -
-
- -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/types/Types.Telemetry.html b/docs/types/Types.Telemetry.html deleted file mode 100644 index 53d3544c..00000000 --- a/docs/types/Types.Telemetry.html +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - Telemetry | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias Telemetry

-
-
- Telemetry: - {
    env?: any;
    name?: string;
    version?: string;
} -
-
-

Type declaration

-
    -
  • -
    - Optional - env?: any -
    -
  • -
  • -
    - Optional - name?: string -
    -
  • -
  • -
    - Optional - version?: string -
    -
  • -
-
- -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/docs/types/User.html b/docs/types/User.html deleted file mode 100644 index 1db3328e..00000000 --- a/docs/types/User.html +++ /dev/null @@ -1,501 +0,0 @@ - - - - - - User | react-native-auth0 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
- -

Type alias User

-
-
- User: - {
    address?: string;
    birthdate?: string;
    email?: string;
    emailVerified?: boolean;
    familyName?: string;
    gender?: string;
    givenName?: string;
    locale?: string;
    middleName?: string;
    name?: string;
    nickname?: string;
    phoneNumber?: string;
    phoneNumberVerified?: boolean;
    picture?: string;
    preferredUsername?: string;
    profile?: string;
    sub?: string;
    updatedAt?: string;
    website?: string;
    zoneinfo?: string;
    [key: - string]: any;
} -
-
-

Type declaration

-
    -
  • -
    - [key: - string]: any -
    -
  • -
  • -
    - Optional - address?: string -
    -
  • -
  • -
    - Optional - birthdate?: string -
    -
  • -
  • -
    - Optional - email?: string -
    -
  • -
  • -
    - Optional - emailVerified?: boolean -
    -
  • -
  • -
    - Optional - familyName?: string -
    -
  • -
  • -
    - Optional - gender?: string -
    -
  • -
  • -
    - Optional - givenName?: string -
    -
  • -
  • -
    - Optional - locale?: string -
    -
  • -
  • -
    - Optional - middleName?: string -
    -
  • -
  • -
    - Optional - name?: string -
    -
  • -
  • -
    - Optional - nickname?: string -
    -
  • -
  • -
    - Optional - phoneNumber?: string -
    -
  • -
  • -
    - Optional - phoneNumberVerified?: boolean -
    -
  • -
  • -
    - Optional - picture?: string -
    -
  • -
  • -
    - Optional - preferredUsername?: string -
    -
  • -
  • -
    - Optional - profile?: string -
    -
  • -
  • -
    - Optional - sub?: string -
    -
  • -
  • -
    - Optional - updatedAt?: string -
    -
  • -
  • -
    - Optional - website?: string -
    -
  • -
  • -
    - Optional - zoneinfo?: string -
    -
  • -
-
- -
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - diff --git a/package-lock.json b/package-lock.json index 3b8e2a8b..25f37084 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-native-auth0", - "version": "4.4.0", + "version": "4.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-native-auth0", - "version": "4.4.0", + "version": "4.5.0", "license": "MIT", "dependencies": { "base-64": "^0.1.0", @@ -59,8 +59,9 @@ "react-native-svg-transformer": "^1.5.0", "release-it": "^15.0.0", "semver": "^6.3.0", - "typedoc": "^0.27.7", - "typedoc-plugin-missing-exports": "^3.1.0", + "typedoc": "^0.28.2", + "typedoc-plugin-markdown": "^4.6.2", + "typedoc-plugin-missing-exports": "^4.0.0", "typescript": "5.7.3" }, "peerDependencies": { @@ -4371,15 +4372,17 @@ } }, "node_modules/@gerrit0/mini-shiki": { - "version": "1.27.2", - "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.27.2.tgz", - "integrity": "sha512-GeWyHz8ao2gBiUW4OJnQDxXQnFgZQwwQk05t/CVVgNBN7/rK8XZ7xY6YhLVv9tH3VppWWmr9DCl3MwemB/i+Og==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.2.3.tgz", + "integrity": "sha512-yemSYr0Oiqk5NAQRfbD5DKUTlThiZw1MxTMx/YpQTg6m4QRJDtV2JTYSuNevgx1ayy/O7x+uwDjh3IgECGFY/Q==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/engine-oniguruma": "^1.27.2", - "@shikijs/types": "^1.27.2", - "@shikijs/vscode-textmate": "^10.0.1" + "@shikijs/engine-oniguruma": "^3.2.2", + "@shikijs/langs": "^3.2.2", + "@shikijs/themes": "^3.2.2", + "@shikijs/types": "^3.2.2", + "@shikijs/vscode-textmate": "^10.0.2" } }, "node_modules/@hapi/hoek": { @@ -6301,31 +6304,51 @@ } }, "node_modules/@shikijs/engine-oniguruma": { - "version": "1.29.2", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.29.2.tgz", - "integrity": "sha512-7iiOx3SG8+g1MnlzZVDYiaeHe7Ez2Kf2HrJzdmGwkRisT7r4rak0e655AcM/tF9JG/kg5fMNYlLLKglbN7gBqA==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.2.2.tgz", + "integrity": "sha512-vyXRnWVCSvokwbaUD/8uPn6Gqsf5Hv7XwcW4AgiU4Z2qwy19sdr6VGzMdheKKN58tJOOe5MIKiNb901bgcUXYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.2.2", + "@shikijs/vscode-textmate": "^10.0.2" + } + }, + "node_modules/@shikijs/langs": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.2.2.tgz", + "integrity": "sha512-NY0Urg2dV9ETt3JIOWoMPuoDNwte3geLZ4M1nrPHbkDS8dWMpKcEwlqiEIGqtwZNmt5gKyWpR26ln2Bg2ecPgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.2.2" + } + }, + "node_modules/@shikijs/themes": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.2.2.tgz", + "integrity": "sha512-Zuq4lgAxVKkb0FFdhHSdDkALuRpsj1so1JdihjKNQfgM78EHxV2JhO10qPsMrm01FkE3mDRTdF68wfmsqjt6HA==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/types": "1.29.2", - "@shikijs/vscode-textmate": "^10.0.1" + "@shikijs/types": "3.2.2" } }, "node_modules/@shikijs/types": { - "version": "1.29.2", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.29.2.tgz", - "integrity": "sha512-VJjK0eIijTZf0QSTODEXCqinjBn0joAHQ+aPSBzrv4O2d/QSbsMw+ZeSRx03kV34Hy7NzUvV/7NqfYGRLrASmw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.2.2.tgz", + "integrity": "sha512-a5TiHk7EH5Lso8sHcLHbVNNhWKP0Wi3yVnXnu73g86n3WoDgEra7n3KszyeCGuyoagspQ2fzvy4cpSc8pKhb0A==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/vscode-textmate": "^10.0.1", + "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" } }, "node_modules/@shikijs/vscode-textmate": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.1.tgz", - "integrity": "sha512-fTIQwLF+Qhuws31iw7Ncl1R3HUDtGwIipiJ9iU+UsDUwMhegFcQKQHd51nZjb7CArq0MvON8rbgCGQYWHUKAdg==", + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", "dev": true, "license": "MIT" }, @@ -25689,36 +25712,50 @@ } }, "node_modules/typedoc": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.7.tgz", - "integrity": "sha512-K/JaUPX18+61W3VXek1cWC5gwmuLvYTOXJzBvD9W7jFvbPnefRnCHQCEPw7MSNrP/Hj7JJrhZtDDLKdcYm6ucg==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.2.tgz", + "integrity": "sha512-9Giuv+eppFKnJ0oi+vxqLM817b/IrIsEMYgy3jj6zdvppAfDqV3d6DXL2vXUg2TnlL62V48th25Zf/tcQKAJdg==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@gerrit0/mini-shiki": "^1.24.0", + "@gerrit0/mini-shiki": "^3.2.2", "lunr": "^2.3.9", "markdown-it": "^14.1.0", "minimatch": "^9.0.5", - "yaml": "^2.6.1" + "yaml": "^2.7.1" }, "bin": { "typedoc": "bin/typedoc" }, + "engines": { + "node": ">= 18", + "pnpm": ">= 10" + }, + "peerDependencies": { + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x" + } + }, + "node_modules/typedoc-plugin-markdown": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.6.2.tgz", + "integrity": "sha512-JVCIoK7FDN3t3PSLkwDyrBFyjtDznqDCJotP9evxhLyb6bEZTqhAGB0tPy1RmgHuY2WoAONMrsWs8LfLsD+A6A==", + "dev": true, + "license": "MIT", "engines": { "node": ">= 18" }, "peerDependencies": { - "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x" + "typedoc": "0.28.x" } }, "node_modules/typedoc-plugin-missing-exports": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/typedoc-plugin-missing-exports/-/typedoc-plugin-missing-exports-3.1.0.tgz", - "integrity": "sha512-Sogbaj+qDa21NjB3SlIw4JXSwmcl/WOjwiPNaVEcPhpNG/MiRTtpwV81cT7h1cbu9StpONFPbddYWR0KV/fTWA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/typedoc-plugin-missing-exports/-/typedoc-plugin-missing-exports-4.0.0.tgz", + "integrity": "sha512-Z4ei+853xppDEhcqzyeyRs4+R0kUuKQWnMK1EtSTEd5LFkgkdW5Bdn8vfo/rsCGbYVJxOWU99fxgM1mROw5Fug==", "dev": true, "license": "MIT", "peerDependencies": { - "typedoc": "0.26.x || 0.27.x" + "typedoc": "^0.28.1" } }, "node_modules/typedoc/node_modules/brace-expansion": { @@ -26806,9 +26843,9 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", - "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", + "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", "dev": true, "license": "ISC", "bin": { diff --git a/package.json b/package.json index 15c4d130..56a3a672 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-auth0", "title": "React Native Auth0", - "version": "4.4.0", + "version": "4.5.0", "description": "React Native toolkit for Auth0 API", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", @@ -117,8 +117,9 @@ "react-native-svg-transformer": "^1.5.0", "release-it": "^15.0.0", "semver": "^6.3.0", - "typedoc": "^0.27.7", - "typedoc-plugin-missing-exports": "^3.1.0", + "typedoc": "^0.28.2", + "typedoc-plugin-markdown": "^4.6.2", + "typedoc-plugin-missing-exports": "^4.0.0", "typescript": "5.7.3" }, "dependencies": { diff --git a/typedoc.json b/typedoc.json index 0888ff82..955c061e 100644 --- a/typedoc.json +++ b/typedoc.json @@ -2,7 +2,7 @@ "entryPoints": ["src/index.ts"], "out": "out", "jsDocCompatibility": false, - "plugin": ["typedoc-plugin-missing-exports"], + "plugin": ["typedoc-plugin-missing-exports", "typedoc-plugin-markdown"], "exclude": ["./src/internal-types.ts", "./src/webauth/agent.ts"], "excludeExternals": true, "internalModule": "Types"