Skip to content

Commit f3b5610

Browse files
committed
fix: eslint fix
1 parent 36b92fe commit f3b5610

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

lib/handlers/revoke-handler.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
/**
3+
/*
44
* Module dependencies.
55
*/
66

@@ -16,10 +16,18 @@ const auth = require('basic-auth');
1616
const 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-
2225
class 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

0 commit comments

Comments
 (0)