Fixing sessionTimeout conversion (#7611)

pull/7623/head
Leo Giovanetti 2023-03-09 07:16:19 -03:00 committed by GitHub
parent fe17203cea
commit 18c1a6a3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ export default NextAuth({
if (user) {
const metadata = userMetadata.parse(user.metadata);
if (metadata?.sessionTimeout) {
maxAge = metadata.sessionTimeout / 60;
maxAge = metadata.sessionTimeout * 60;
}
}
}