Commit Graph

37 Commits

Author SHA1 Message Date
Dan
4a875dfd9d
Removed trailing whitespaces 2019-01-30 13:38:51 -05:00
Dan
6e2619fca4
auth0-js - Added back needed fields back to Auth0DecodedHash
Auth0Error can happen where Auth0 still uses these other fields that someone mistakenly removed a couple months ago (in cases like webAuth.login method).
Responses aren't always in format 'error' & 'errorDescription' and the other fields need to be captured.

Example response = HTTP 401 `{"name":"ValidationError","code":"invalid_user_password","description":"Wrong email or password.","statusCode":400}`

Oct commit that mistakenly removed these
c5b6a5e2d5 (diff-7795f2501af1276ff905e366093a998b)
2019-01-30 13:05:19 -05:00
Dan
4a6613663a
typo - AuthorizeOptions accessType 2019-01-29 10:43:46 -05:00
Dan
71bd0ba07b auth0-js - Including optional props AuthorizeOptions - acccessType; approvalPrompt (#32520)
* Including optional properties AuthorizeOptions - acccessType; approvalForce

auth-0.js actually forwards any param you send it (minus a specific black list).
Auth0 Support and Community use these optional params, although they are not specifically called out in the Auth0 API documentation.
Auth0 Support and Community even specify these are needed especially to get Google refresh_tokens (vie email Support Ticket, as well as the Community link below)
https://community.auth0.com/t/cant-get-google-refresh-token-using-auth0-js/11756

* Corrected to use field approvalPrompt

* fixed typo
2019-01-28 15:11:49 -08:00
Phebe Sawan
2c11ef711e [auth0-js] Add passwordlessLogin to WebAuth for auth0 v9 (#31532)
* add passwordlessLogin to WebAuth

* remove trailing whitespaces from auth0.WebAuth

* Re-arrange the order of the PasswordlessLoginOptions properties to match the declaration in auth0
2018-12-20 08:16:17 -08:00
Philipp Zins
4c4a7bc58f fix ci 2018-10-29 09:38:23 +01:00
Donald Pipowitch
dcce4bb576
auth0-js: Set TypeScript version 2018-10-29 07:41:20 +01:00
Donald Pipowitch
c5b6a5e2d5
better error typings for auth0 2018-10-28 13:29:40 +01:00
Clément Taboulot
6524388fde [auth0-js] Add login_hint value in AuthorizeOptions (#29479)
* [auth0-js] Add login_hint value in AuthorizeOptions

* Update Test
2018-10-05 14:45:59 -07:00
Igor Belagorudsky
97c858eb36 auth0-js: added mode to AuthorizeOptions 2018-08-09 15:04:34 -04:00
Clément
63788e8495
Update test 2018-08-07 14:58:02 +02:00
Clément
bceea928ac
[auth0-js] Add prompt value in AuthorizeOptions 2018-08-07 14:56:25 +02:00
Clément
bf1d71284d [auth0-js] Add language value in AuthorizeOptions (#27438)
* Add language value to AuthorizeOptions

* Update test
2018-07-27 17:20:40 -07:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
David Noreña Perez
35f2d7daa9 Fix auth0-js Auth0UserProfile (#23098) 2018-01-22 13:43:10 -08:00
Adrian Chia
1de5359aea [auth0-js] Add optional usePostMessage for checkSession, fix travis-ci build error 2017-12-05 17:03:16 -06:00
Adrian Chia
2a41d4fb39 Fix travis build error 2017-12-05 16:51:38 -06:00
Adrian Chia
eb04a7c5cc Add checkSession method to acquire new token from Auth0 2017-12-05 16:33:15 -06:00
Armando Aguirre
d938e60bd2
Merge pull request #21698 from peterblazejewicz/update/auth0-js
Update contract for Auth0DecodedHash of auth0-js
2017-12-01 13:59:52 -08:00
Peter Blazejewicz
e3e6a085db Update auth0-js RenewAuthOptions
This commit adds:
- documentation for existing interface options
- missing options from current v.8 of Auth0 for RenewAuthOptions

The documentation and missing fields are based on existing Auth0 documentation
here:
- https://git.io/vFxy3
- https://github.com/auth0/auth0.js/pull/572

Thanks!
2017-11-23 22:32:12 +01:00
Peter Blazejewicz
f9702725c7
Fix CI check failures
This makes the PR complies with CI build requirements
2017-11-23 09:20:47 +01:00
Peter Blazejewicz
a1642fcdfe Bump auth0-js version covered by this definition file
I have tested with 8.11.3 - hence the version bump

Thanks!
2017-11-22 22:45:34 +01:00
Peter Blazejewicz
a045a2c505 Update contract for Auth0DecodedHash of auth0-js
This commit updates contract for results of the  WebAuth.parseHash call to v.8 of auth0-js.
Here is a link to relevant vanilla JS implementation:
https://git.io/vFNdC

Thanks!
2017-11-22 22:37:30 +01:00
Tim Swalling
e091e4ee39 Add optional connection property to Popup.authorize options 2017-11-01 14:38:50 +00:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Andy
5a0a6173b6 auth0-js: Fix lint (#20852) 2017-10-23 07:42:20 -07:00
Shenghan Gao
fff1399971 fix issues for auth0-js mentioned in #20210 (#20221)
* fix issues for auth0-js mentioned in #20210

* bump version

* fix lint errors
2017-10-09 14:46:09 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
rapmue
46f1650f0c [auth0-js] Make options optional in authorize (#20107)
Since everything in `AuthorizeOptions` is optional and in the docs they are using authorize from `WebAuth` without any options, it should be possible to leave them out.
2017-10-03 10:27:45 -07:00
mdurrant
e9b708a8d2 auth0: Added support for optional user_metadata field in signup 2017-08-20 07:15:31 -06:00
cedvdb
76eca1eb80 Update index.d.ts
added connection to authorizeOptions, and made every field of AuthorizeOption optional
2017-06-20 15:47:27 +02:00
Mine Starks
af934c1328 Merge pull request #17223 from adrianchia/auth0-js-patch1
Auth0-js: add usePostMessage to RenewAuthOptions, update test case
2017-06-15 18:26:59 -07:00
Nathan Shively-Sanders
4874667de9 Fix primitive weak type errors
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00
Adrian Chia
1a363c67c4 Auth0-js: Add usePostMessage to RenewAuthOptions, update test case 2017-06-15 12:22:33 -05:00
Adrian Chia
524b072a5a Update auth0-js to v8.6 (#16704)
* Update auth0-js to v8.6

* remove redundant @method in JSDoc

* Fix auth0-js-test
2017-06-02 16:58:35 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00