Fixing sessionTimeout conversion (#7611)
parent
fe17203cea
commit
18c1a6a3a2
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue