Skip to content

Commit 560e793

Browse files
fix: clarify error handling for HS256 signed tokens in doc
1 parent 9163b77 commit 560e793

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/web-auth/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ function WebAuth(options) {
207207
*
208208
* Only validates id_tokens signed by Auth0 using the RS256 algorithm using the public key exposed
209209
* by the `/.well-known/jwks.json` endpoint of your account.
210-
* Tokens signed with the HS256 algorithm cannot be properly validated.
211-
* Instead, a call to {@link userInfo} will be made with the parsed `access_token`.
212-
* If the {@link userInfo} call fails, the {@link userInfo} error will be passed to the callback.
210+
* Tokens signed with the HS256 algorithm cannot be properly validated and will result in an error.
213211
* Tokens signed with other algorithms will not be accepted.
214212
*
215213
* @example
@@ -310,9 +308,7 @@ WebAuth.prototype.parseHash = function (options, cb) {
310308
*
311309
* Only validates id_tokens signed by Auth0 using the RS256 algorithm using the public key exposed
312310
* by the `/.well-known/jwks.json` endpoint of your account.
313-
* Tokens signed with the HS256 algorithm cannot be properly validated.
314-
* Instead, a call to {@link userInfo} will be made with the parsed `access_token`.
315-
* If the {@link userInfo} call fails, the {@link userInfo} error will be passed to the callback.
311+
* Tokens signed with the HS256 algorithm cannot be properly validated and will result in an error.
316312
* Tokens signed with other algorithms will not be accepted.
317313
*
318314
* @method validateAuthenticationResponse

0 commit comments

Comments
 (0)