Skip to content

Commit

Permalink
Release v2.14.0 (#524)
Browse files Browse the repository at this point in the history
* Release v2.14.0

* Update CHANGELOG.md
  • Loading branch information
poovamraj authored Oct 7, 2022
1 parent 89a7c9d commit 302fbee
Show file tree
Hide file tree
Showing 16 changed files with 137 additions and 27 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Change Log

## [v2.14.0](https://github.com/auth0/react-native-auth0/tree/v2.14.0) (2022-10-07)

#### 📣 Major improvements now generally available

This release brings the much requested features to the React Native Auth0 SDK:

- Support for Expo [\#424](https://github.com/auth0/react-native-auth0/pull/424) ([sdacunha](https://github.com/sdacunha))
- Built-in Secure Credentials Manager [\#501](https://github.com/auth0/react-native-auth0/pull/501) ([poovamraj](https://github.com/poovamraj))
- Support for React Hooks [\#500](https://github.com/auth0/react-native-auth0/pull/500) ([stevehobbsdev](https://github.com/stevehobbsdev))

[Full Changelog](https://github.com/auth0/react-native-auth0/compare/v2.13.3...v2.14.0)

**Added**

- Add remaining fields for signing up a user [\#498](https://github.com/auth0/react-native-auth0/pull/498) ([travisobregon](https://github.com/travisobregon))

**Changed**

- Default scopes for authorize call (hooks only) [\#522](https://github.com/auth0/react-native-auth0/pull/522) ([stevehobbsdev](https://github.com/stevehobbsdev))

## [v2.14.0-fa.0](https://github.com/auth0/react-native-auth0/tree/v2.14.0-fa.0) (2022-09-09)

[Full Changelog](https://github.com/auth0/react-native-auth0/compare/v2.13.3...v2.14.0-fa.0)
Expand Down
92 changes: 81 additions & 11 deletions docs/Auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ <h4 class="name" id="createUser">
<ul class="dummy">
<li>
<a href="auth_index.js.html">auth/index.js</a>,
<a href="auth_index.js.html#line577">line 577</a>
<a href="auth_index.js.html#line582">line 582</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -521,6 +521,37 @@ <h5>Parameters:</h5>
</td>
</tr>

<tr>
<td class="name"><code>password</code></td>

<td class="type">
<span class="param-type"><code>String</code></span>
</td>

<td class="attributes"></td>

<td class="description last">
<p>user's password</p>
</td>
</tr>

<tr>
<td class="name"><code>connection</code></td>

<td class="type">
<span class="param-type"><code>String</code></span>
</td>

<td class="attributes"></td>

<td class="description last">
<p>
name of the database connection where to create
the user
</p>
</td>
</tr>

<tr>
<td class="name"><code>username</code></td>

Expand All @@ -536,33 +567,72 @@ <h5>Parameters:</h5>
</tr>

<tr>
<td class="name"><code>password</code></td>
<td class="name"><code>give_name</code></td>

<td class="type">
<span class="param-type"><code>String</code></span>
</td>

<td class="attributes"></td>
<td class="attributes">&lt;optional><br /></td>

<td class="description last">
<p>user's password</p>
<p>The user's given name(s)</p>
</td>
</tr>

<tr>
<td class="name"><code>connection</code></td>
<td class="name"><code>family_name</code></td>

<td class="type">
<span class="param-type"><code>String</code></span>
</td>

<td class="attributes"></td>
<td class="attributes">&lt;optional><br /></td>

<td class="description last">
<p>
name of the database connection where to create
the user
</p>
<p>The user's family name(s)</p>
</td>
</tr>

<tr>
<td class="name"><code>name</code></td>

<td class="type">
<span class="param-type"><code>String</code></span>
</td>

<td class="attributes">&lt;optional><br /></td>

<td class="description last">
<p>The user's full name</p>
</td>
</tr>

<tr>
<td class="name"><code>nickname</code></td>

<td class="type">
<span class="param-type"><code>String</code></span>
</td>

<td class="attributes">&lt;optional><br /></td>

<td class="description last">
<p>The user's nickname</p>
</td>
</tr>

<tr>
<td class="name"><code>picture</code></td>

<td class="type">
<span class="param-type"><code>String</code></span>
</td>

<td class="attributes">&lt;optional><br /></td>

<td class="description last">
<p>A URI pointing to the user's picture</p>
</td>
</tr>

Expand Down Expand Up @@ -2659,7 +2729,7 @@ <h5>Returns:</h5>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/Auth0.html
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ <h5>Returns:</h5>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/CredentialsManager.html
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ <h5>Returns:</h5>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/Users.html
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ <h5>Returns:</h5>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/WebAuth.html
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ <h5>Returns:</h5>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/auth0.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ <h1 class="page-title">auth0.js</h1>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
14 changes: 12 additions & 2 deletions docs/auth_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,14 @@ <h1 class="page-title">auth/index.js</h1>
*
* @param {Object} parameters create user parameters
* @param {String} parameters.email user's email
* @param {String} [parameters.username] user's username
* @param {String} parameters.password user's password
* @param {String} parameters.connection name of the database connection where to create the user
* @param {String} [parameters.username] user's username
* @param {String} [parameters.give_name] The user's given name(s)
* @param {String} [parameters.family_name] The user's family name(s)
* @param {String} [parameters.name] The user's full name
* @param {String} [parameters.nickname] The user's nickname
* @param {String} [parameters.picture] A URI pointing to the user's picture
* @param {String} [parameters.metadata] additional user information that will be stored in `user_metadata`
* @returns {Promise}
*/
Expand All @@ -845,6 +850,11 @@ <h1 class="page-title">auth/index.js</h1>
password: {required: true},
connection: {required: true},
username: {required: false},
given_name: {required: false},
family_name: {required: false},
name: {required: false},
nickname: {required: false},
picture: {required: false},
metadata: {required: false, toName: 'user_metadata'},
},
},
Expand Down Expand Up @@ -875,7 +885,7 @@ <h1 class="page-title">auth/index.js</h1>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/credentials-manager_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ <h1 class="page-title">credentials-manager/index.js</h1>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ <h5>Type:</h5>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
14 changes: 12 additions & 2 deletions docs/hooks_auth0-provider.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,17 @@ <h1 class="page-title">hooks/auth0-provider.js</h1>
const authorize = useCallback(
async (...options) => {
try {
const credentials = await client.webAuth.authorize(...options);
const opts = options.length ? options[0] : {};
const specifiedScopes =
opts?.scope?.split(' ').map(s => s.trim()) || [];
const scopeSet = new Set([
...specifiedScopes,
...['openid', 'profile', 'email'],
]);

opts.scope = Array.from(scopeSet).join(' ');

const credentials = await client.webAuth.authorize(opts);
const user = getIdTokenProfileClaims(credentials.idToken);

await client.credentialsManager.saveCredentials(credentials);
Expand Down Expand Up @@ -413,7 +423,7 @@ <h1 class="page-title">hooks/auth0-provider.js</h1>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/hooks_use-auth0.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ <h1 class="page-title">hooks/use-auth0.js</h1>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ <h2>License</h2>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/management_users.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ <h1 class="page-title">management/users.js</h1>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion docs/webauth_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ <h1 class="page-title">webauth/index.js</h1>

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on
Fri Sep 09 2022 10:18:25 GMT+0200 (Central European Summer Time) using the
Fri Oct 07 2022 12:45:17 GMT+0200 (Central European Summer Time) using the
Minami theme.
</footer>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-auth0",
"title": "React Native Auth0",
"version": "2.14.0-fa.0",
"version": "2.14.0",
"description": "React Native toolkit for Auth0 API",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 302fbee

Please sign in to comment.