Skip to content

Commit

Permalink
refactor: ensure param-assigned max_age from client.defaultMaxAge is …
Browse files Browse the repository at this point in the history
…a string
  • Loading branch information
panva committed Jun 20, 2024
1 parent a750ae8 commit 0c52469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/actions/authorization/assign_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function assignDefaults(ctx, next) {
}

if (params.max_age === undefined && client.defaultMaxAge !== undefined) {
params.max_age = client.defaultMaxAge;
params.max_age = client.defaultMaxAge.toString();
}

return next();
Expand Down

0 comments on commit 0c52469

Please sign in to comment.