Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Commit

Permalink
Document verifyToken()'s @throws
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrizagidulin committed May 4, 2016
1 parent 22f6ff2 commit 3d2379a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -58,7 +58,7 @@ AnvilConnectExpress.prototype.errorHandler = errorHandler
* @param req {IncomingMessage} Express request object
* @param nextError {Function} Error handler
* @throws {UnauthorizedError} HTTP 400 error on invalid auth headers
* @returns {AccessToken} JWT Access Token
* @return {AccessToken} JWT Access Token
*/
function extractToken (req, nextError) {
// Check for an access token in the Authorization header
Expand Down Expand Up @@ -204,6 +204,7 @@ AnvilConnectExpress.prototype.verifier = verifier
* @param nextError {Function} Error handler
* @param [options] {Object} Options hashmap (see option param docs for
* the `verifier()` method above)
* @throws {UnauthorizedError} HTTP 401 or 403 errors thrown by client.verify()
*/
function verifyToken (req, accessToken, next, nextError, options) {
return this.client.verify(accessToken, options)
Expand Down

0 comments on commit 3d2379a

Please sign in to comment.