File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
app/api/auth/[...nextauth] Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1- import { DefaultSession , DefaultUser } from 'next-auth' ;
1+ import { DefaultUser } from 'next-auth' ;
22import { DefaultJWT } from 'next-auth/jwt' ;
33
44declare module 'next-auth' {
5- interface Session {
6- user : {
7- accessToken ?: string ;
8- refreshToken ?: string ;
9- } & DefaultSession ;
10- }
115 interface User extends DefaultUser {
126 accessToken ?: string ;
137 refreshToken ?: string ;
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ import NextAuth from 'next-auth';
66import CredentialsProvider from 'next-auth/providers/credentials' ;
77
88const handler = NextAuth ( {
9+ session : {
10+ maxAge : 1 * 24 * 60 * 60 ,
11+ } ,
912 pages : {
1013 signIn : SIGN_IN_PAGE_PATHNAME ,
1114 } ,
You can’t perform that action at this time.
0 commit comments