File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
3- /**
3+ /*
44 * Module dependencies.
55 */
66
@@ -16,10 +16,18 @@ const auth = require('basic-auth');
1616const isFormat = require ( '@node-oauth/formats' ) ;
1717
1818/**
19- * Constructor.
19+ * A revocation request will invalidate the actual token and, if applicable, other
20+ * tokens based on the same authorization grant and the authorization
21+ * grant itself.
22+ *
23+ * @see https://tools.ietf.org/html/rfc7009
2024 */
21-
2225class RevokeHandler {
26+ /**
27+ * Constructor.
28+ * @constructor
29+ * @param options
30+ */
2331 constructor ( options ) {
2432 options = options || { } ;
2533
@@ -237,7 +245,7 @@ class RevokeHandler {
237245
238246 // If we found a token, revoke it
239247 if ( tokenToRevoke ) {
240- await this . model . revokeToken ( tokenToRevoke ) ;
248+ await this . model . revokeToken ( tokenToRevoke ) ;
241249 }
242250
243251 // Per RFC 7009, we return success even if token was not found
You can’t perform that action at this time.
0 commit comments