diff --git a/CHANGELOG.md b/CHANGELOG.md index 17af5505..4f701f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## [v2.17.2](https://github.com/auth0/react-native-auth0/tree/v2.17.2) (2023-04-27) + +[Full Changelog](https://github.com/auth0/react-native-auth0/compare/v2.17.1...v2.17.2) + +**Added** + +- getCredentials hook now updates user state [\#584](https://github.com/auth0/react-native-auth0/pull/584) ([KMathisGit](https://github.com/KMathisGit)) + +**Fixed** + +- Added tokenType to credentials returned in Android [\#621](https://github.com/auth0/react-native-auth0/pull/621) ([poovamraj](https://github.com/poovamraj)) +- [ESD-27178] Fix browser not found issue not being surfaced [\#611](https://github.com/auth0/react-native-auth0/pull/611) ([poovamraj](https://github.com/poovamraj)) + ## [v2.17.1](https://github.com/auth0/react-native-auth0/tree/v2.17.1) (2023-02-09) [Full Changelog](https://github.com/auth0/react-native-auth0/compare/v2.17.0...v2.17.1) diff --git a/docs/Auth.html b/docs/Auth.html index a8dce683..ac454ddf 100644 --- a/docs/Auth.html +++ b/docs/Auth.html @@ -2729,7 +2729,7 @@
Returns:
diff --git a/docs/Auth0.html b/docs/Auth0.html index d5e57adc..674d5369 100644 --- a/docs/Auth0.html +++ b/docs/Auth0.html @@ -446,7 +446,7 @@
Returns:
diff --git a/docs/CredentialsManager.html b/docs/CredentialsManager.html index a2d3291d..80d515fb 100644 --- a/docs/CredentialsManager.html +++ b/docs/CredentialsManager.html @@ -666,7 +666,7 @@
Parameters:
strategy - String + Number @@ -863,7 +863,7 @@
Returns:
diff --git a/docs/Users.html b/docs/Users.html index d2dfbd75..05a128a5 100644 --- a/docs/Users.html +++ b/docs/Users.html @@ -535,7 +535,7 @@
Returns:
diff --git a/docs/WebAuth.html b/docs/WebAuth.html index ef896e8c..9d80977e 100644 --- a/docs/WebAuth.html +++ b/docs/WebAuth.html @@ -835,7 +835,7 @@
Returns:
diff --git a/docs/auth0.js.html b/docs/auth0.js.html index d025cbcf..1bbfe623 100644 --- a/docs/auth0.js.html +++ b/docs/auth0.js.html @@ -305,7 +305,7 @@

auth0.js

diff --git a/docs/auth_index.js.html b/docs/auth_index.js.html index 701820bb..50e618cf 100644 --- a/docs/auth_index.js.html +++ b/docs/auth_index.js.html @@ -893,7 +893,7 @@

auth/index.js

diff --git a/docs/credentials-manager_index.js.html b/docs/credentials-manager_index.js.html index 669a7b2f..3e580d33 100644 --- a/docs/credentials-manager_index.js.html +++ b/docs/credentials-manager_index.js.html @@ -261,7 +261,7 @@

credentials-manager/index.js

import {Platform, NativeModules} from 'react-native';
+          >import { NativeModules, Platform } from 'react-native';
 import CredentialsManagerError from './credentialsManagerError';
 import LocalAuthenticationStrategy from './localAuthenticationStrategy';
 
@@ -418,7 +418,7 @@ 

credentials-manager/index.js

Generated by JSDoc 3.6.11 on - Thu Feb 09 2023 09:45:58 GMT+0530 (India Standard Time) using the Minami + Thu Apr 27 2023 12:14:31 GMT+0530 (India Standard Time) using the Minami theme.
diff --git a/docs/global.html b/docs/global.html index a3a84117..132b1f26 100644 --- a/docs/global.html +++ b/docs/global.html @@ -598,7 +598,7 @@
Type:
Generated by JSDoc 3.6.11 on - Thu Feb 09 2023 09:45:58 GMT+0530 (India Standard Time) using the Minami + Thu Apr 27 2023 12:14:31 GMT+0530 (India Standard Time) using the Minami theme.
diff --git a/docs/hooks_auth0-provider.js.html b/docs/hooks_auth0-provider.js.html index 49e98fa3..88875b81 100644 --- a/docs/hooks_auth0-provider.js.html +++ b/docs/hooks_auth0-provider.js.html @@ -370,7 +370,12 @@

hooks/auth0-provider.js

const getCredentials = useCallback( async (...options) => { try { - return await client.credentialsManager.getCredentials(...options); + const credentials = await client.credentialsManager.getCredentials(...options); + if(credentials.idToken) { + const user = getIdTokenProfileClaims(credentials.idToken); + dispatch({type: 'SET_USER', user}); + } + return credentials; } catch (error) { dispatch({type: 'ERROR', error}); return; @@ -440,7 +445,7 @@

hooks/auth0-provider.js

Generated by JSDoc 3.6.11 on - Thu Feb 09 2023 09:45:58 GMT+0530 (India Standard Time) using the Minami + Thu Apr 27 2023 12:14:31 GMT+0530 (India Standard Time) using the Minami theme.
diff --git a/docs/hooks_use-auth0.js.html b/docs/hooks_use-auth0.js.html index 07ac911a..eaf07706 100644 --- a/docs/hooks_use-auth0.js.html +++ b/docs/hooks_use-auth0.js.html @@ -305,7 +305,7 @@

hooks/use-auth0.js

Generated by JSDoc 3.6.11 on - Thu Feb 09 2023 09:45:58 GMT+0530 (India Standard Time) using the Minami + Thu Apr 27 2023 12:14:31 GMT+0530 (India Standard Time) using the Minami theme.
diff --git a/docs/index.html b/docs/index.html index 26fdfe48..cc67c222 100644 --- a/docs/index.html +++ b/docs/index.html @@ -633,7 +633,7 @@

Expo

To use the SDK with Expo, configure the app at build time by - providing the domain and (optionally) the + providing the domain and the customScheme values through the Config PluginExpo "react-native-auth0", { "domain": "YOUR_AUTH0_DOMAIN", - "customScheme": "YOUR_CUSTOM_SCHEME", + "customScheme": "YOUR_CUSTOM_SCHEME" } ] ] @@ -675,11 +675,13 @@

Expo

customScheme - Optional: Custom scheme to build the callback URL with. If not - provided, uses Application ID for Android and Bundle - Identifier for iOS. The value provided here should be passed - to the customScheme option parameter of the - authorize and clearSession methods + Mandatory: 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 (For example: + auth0.YOUR_APP_PACKAGE_NAME_OR_BUNDLE_IDENTIFIER). @@ -722,23 +724,27 @@

Callback URL(s)

Android

{YOUR_APP_PACKAGE_NAME_OR_CUSTOM_SCHEME}://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback
+          >{APP_PACKAGE_NAME_OR_CUSTOM_SCHEME}://{AUTH0_DOMAIN}/android/{APP_PACKAGE_NAME}/callback
 

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

iOS

{YOUR_BUNDLE_IDENTIFIER_OR_CUSTOM_SCHEME}://{YOUR_AUTH0_DOMAIN}/ios/{YOUR_BUNDLE_IDENTIFIER}/callback
+          >{BUNDLE_IDENTIFIER_OR_CUSTOM_SCHEME}://{AUTH0_DOMAIN}/ios/{BUNDLE_IDENTIFIER}/callback
 

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

Next Steps

@@ -851,7 +857,7 @@

Login

const {authorize, user, isLoading, error} = useAuth0(); const login = async () => { - await authorize(); + await clearSession(); // clearSession({customScheme: 'CUSTOM_SCHEME') when using Expo or a custom scheme }; if(isLoading) { @@ -914,7 +920,7 @@

Logout

const {clearSession, user} = useAuth0(); const logout = async () => { - await clearSession(); + await clearSession(); // clearSession({customScheme: 'CUSTOM_SCHEME') when using Expo or a custom scheme }; return <View>{user && <Button onPress={logout} title="Log out" />}</View>; @@ -1116,7 +1122,7 @@

Vulnerability Reporting

Generated by JSDoc 3.6.11 on - Thu Feb 09 2023 09:45:58 GMT+0530 (India Standard Time) using the Minami + Thu Apr 27 2023 12:14:31 GMT+0530 (India Standard Time) using the Minami theme.
diff --git a/docs/management_users.js.html b/docs/management_users.js.html index 3b4486df..5b36829a 100644 --- a/docs/management_users.js.html +++ b/docs/management_users.js.html @@ -374,7 +374,7 @@

management/users.js

Generated by JSDoc 3.6.11 on - Thu Feb 09 2023 09:45:58 GMT+0530 (India Standard Time) using the Minami + Thu Apr 27 2023 12:14:31 GMT+0530 (India Standard Time) using the Minami theme.
diff --git a/docs/webauth_index.js.html b/docs/webauth_index.js.html index 3659765f..3a3caafa 100644 --- a/docs/webauth_index.js.html +++ b/docs/webauth_index.js.html @@ -444,7 +444,7 @@

webauth/index.js

diff --git a/package.json b/package.json index 0c88c3cf..ed41bafc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-auth0", "title": "React Native Auth0", - "version": "2.17.1", + "version": "2.17.2", "description": "React Native toolkit for Auth0 API", "main": "index.js", "scripts": { diff --git a/src/networking/telemetry.js b/src/networking/telemetry.js index 4d8f56fa..781463f2 100644 --- a/src/networking/telemetry.js +++ b/src/networking/telemetry.js @@ -1 +1 @@ -module.exports = {name: 'react-native-auth0', version: '2.17.1'}; +module.exports = {name: 'react-native-auth0', version: '2.17.2'};