Skip to content

Commit 0c52469

Browse files
committed
refactor: ensure param-assigned max_age from client.defaultMaxAge is a string
1 parent a750ae8 commit 0c52469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/actions/authorization/assign_defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function assignDefaults(ctx, next) {
1010
}
1111

1212
if (params.max_age === undefined && client.defaultMaxAge !== undefined) {
13-
params.max_age = client.defaultMaxAge;
13+
params.max_age = client.defaultMaxAge.toString();
1414
}
1515

1616
return next();

0 commit comments

Comments
 (0)