Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Release 0.4.3 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs authored Feb 21, 2020
1 parent 332ac4c commit af04186
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 57 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
# Change Log

## [v0.4.2](https://github.com/auth0/auth0-cordova/tree/v0.4.0) (2020-01-24)
## [v0.4.3](https://github.com/auth0/auth0-cordova/tree/v0.4.3) (2020-01-21)

**Dependencies**

- Bump cordova-plugin-ionic-webview in /example/wkwebview [\#119](https://github.com/auth0/auth0-cordova/pull/119) (dependabot)
- Bump codecov from 3.6.1 to 3.6.5 [\#122](https://github.com/auth0/auth0-cordova/pull/122) (dependabot)
- Security upgrade url-parse from 1.4.3 to 1.4.5 [\#123](https://github.com/auth0/auth0-cordova/pull/123) (dependabot)

## [v0.4.2](https://github.com/auth0/auth0-cordova/tree/v0.4.2) (2020-01-24)

[Full Changelog](https://github.com/auth0/auth0-cordova/compare/v0.4.1...v0.4.2)

**Changed**

Bumped auth0-js to 9.12.2 for removal of issued-at time check [\#116](https://github.com/auth0/auth0-cordova/pull/116) ([stevehobbsdev](https://github.com/stevehobbsdev))

## [v0.4.1](https://github.com/auth0/auth0-cordova/tree/v0.4.0) (2019-10-16)
## [v0.4.1](https://github.com/auth0/auth0-cordova/tree/v0.4.1) (2019-10-16)

[Full Changelog](https://github.com/auth0/auth0-cordova/compare/v0.4.0...v0.4.1)

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/CordovaAuth.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Oct 16 2019 13:05:06 GMT+0100 (BST) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Feb 21 2020 11:26:04 GMT+0000 (Greenwich Mean Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ <h4 class="name" id="onRedirectUri"><span class="type-signature"></span>onRedire

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line175">line 175</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line170">line 170</a>
</li></ul></dd>


Expand Down Expand Up @@ -963,7 +963,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Oct 16 2019 13:05:06 GMT+0100 (BST) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Feb 21 2020 11:26:04 GMT+0000 (Greenwich Mean Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h2>License</h2>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Oct 16 2019 13:05:06 GMT+0100 (BST) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Feb 21 2020 11:26:04 GMT+0000 (Greenwich Mean Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
89 changes: 42 additions & 47 deletions docs/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,47 @@ <h1 class="page-title">index.js</h1>

var url = client.buildAuthorizeUrl(params);

session.start(function (sessionError, redirectUrl) {
if (sessionError != null) {
callback(sessionError);
return true;
}
if (redirectUrl.indexOf(redirectUri) === -1) {
return false;
}
if (!redirectUrl || typeof redirectUrl !== 'string') {
callback(new Error('url must be a string'));
return true;
}
var response = parse(redirectUrl, true).query;
if (response.error) {
callback(new Error(response.error_description || response.error));
return true;
}
var responseState = response.state;
if (responseState !== requestState) {
callback(new Error('Response state does not match expected state'));
return true;
}
var code = response.code;
var verifier = keys.codeVerifier;
agent.close();

client.oauthToken({
code_verifier: verifier,
grantType: 'authorization_code',
redirectUri: redirectUri,
code: code
}, function (exchangeError, exchangeResult) {
if (exchangeError) {
return callback(exchangeError);
}
return callback(null, exchangeResult);
});

return true;
});

agent.open(url, function (error, result) {
if (error != null) {
session.clean();
Expand Down Expand Up @@ -163,52 +204,6 @@ <h1 class="page-title">index.js</h1>
// Ignore any other events.
return;
}

session.start(function (sessionError, redirectUrl) {
if (sessionError != null) {
callback(sessionError);
return true;
}

if (redirectUrl.indexOf(redirectUri) === -1) {
return false;
}

if (!redirectUrl || typeof redirectUrl !== 'string') {
callback(new Error('url must be a string'));
return true;
}

var response = parse(redirectUrl, true).query;
if (response.error) {
callback(new Error(response.error_description || response.error));
return true;
}

var responseState = response.state;
if (responseState !== requestState) {
callback(new Error('Response state does not match expected state'));
return true;
}

var code = response.code;
var verifier = keys.codeVerifier;
agent.close();

client.oauthToken({
code_verifier: verifier,
grantType: 'authorization_code',
redirectUri: redirectUri,
code: code
}, function (exchangeError, exchangeResult) {
if (exchangeError) {
return callback(exchangeError);
}
return callback(null, exchangeResult);
});

return true;
});
});
});
};
Expand Down Expand Up @@ -250,7 +245,7 @@ <h1 class="page-title">index.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Oct 16 2019 13:05:06 GMT+0100 (BST) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Feb 21 2020 11:26:04 GMT+0000 (Greenwich Mean Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@auth0/cordova",
"version": "0.4.2",
"version": "0.4.3",
"description": "Auth0 integration for Cordova applications",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { raw: '0.4.2' };
module.exports = { raw: '0.4.3' };

0 comments on commit af04186

Please sign in to comment.