From ddfde9cc1ed16532131c7e821d85b694b036fe07 Mon Sep 17 00:00:00 2001 From: Harshit Date: Thu, 19 Mar 2026 23:39:19 +0530 Subject: [PATCH] fix: correct JSDoc parameter type in Authenticator.prototype.use Improve type inference by allowing undefined strategy. Fixes: #896 --- lib/authenticator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authenticator.js b/lib/authenticator.js index 98e663c7..5bc8e970 100644 --- a/lib/authenticator.js +++ b/lib/authenticator.js @@ -43,7 +43,7 @@ Authenticator.prototype.init = function() { * @public * @param {string} [name=strategy.name] - Name of the strategy. When specified, * this value overrides the strategy's name. - * @param {Strategy} strategy - Authentication strategy. + * @param {Strategy|undefined} strategy - Authentication strategy. * @returns {this} * * @example Register strategy.