From 0c52469f08b0a4a1854d90a96546a3f7aa090e5e Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 20 Jun 2024 12:11:10 +0200 Subject: [PATCH] refactor: ensure param-assigned max_age from client.defaultMaxAge is a string --- lib/actions/authorization/assign_defaults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/authorization/assign_defaults.js b/lib/actions/authorization/assign_defaults.js index 71686f344..2ff5b3458 100644 --- a/lib/actions/authorization/assign_defaults.js +++ b/lib/actions/authorization/assign_defaults.js @@ -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();