Skip to content

Commit

Permalink
docs: update Strategy.prototype.currentUrl JSDoc
Browse files Browse the repository at this point in the history
refs: #714
  • Loading branch information
panva committed Oct 23, 2024
1 parent b0e57fe commit 46ea086
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/passport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,7 @@ export class Strategy implements passport.Strategy {
* - Its `searchParams` are used as the authorization response parameters when
* the response type used by the client is `code`
* - Its value stripped of `searchParams` and `hash` is used as the
* `redirect_uri` authorization code grant token endpoint parameter unless
* callbackURL was specified in the Strategy constructor
* `redirect_uri` authorization code grant token endpoint parameter
*/
currentUrl(req: express.Request): URL {
return new URL(`${req.protocol}://${req.host}${req.url}`)
Expand Down

0 comments on commit 46ea086

Please sign in to comment.