We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 055a3a6 commit c4f17c0Copy full SHA for c4f17c0
lib/handlers/authenticate-handler.js
@@ -216,8 +216,8 @@ AuthenticateHandler.prototype.getAccessToken = function(token) {
216
*/
217
218
AuthenticateHandler.prototype.validateAccessToken = function(accessToken) {
219
- if (accessToken.accessTokenExpiresAt && !(accessToken.accessTokenExpiresAt instanceof Date)) {
220
- throw new ServerError('Server error: `expires` must be a Date instance');
+ if (!accessToken.accessTokenExpiresAt && !(accessToken.accessTokenExpiresAt instanceof Date)) {
+ throw new ServerError('Server error: `accessTokenExpiresAt` must be a Date instance');
221
}
222
223
if (accessToken.accessTokenExpiresAt && accessToken.accessTokenExpiresAt < new Date()) {
0 commit comments