diff options
| author | joonhoekim <26rote@gmail.com> | 2025-06-27 01:25:48 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-06-27 01:25:48 +0000 |
| commit | 15b2d4ff61d0339385edd8cc67bf7579fcc2af08 (patch) | |
| tree | f0c36724855abccf705a9cdcae6fa3efd54d996d /app/api/auth | |
| parent | e9897d416b3e7327bbd4d4aef887eee37751ae82 (diff) | |
(김준회) MDG SOAP 수신 유틸리티 및 API 엔드포인트, 스키마
Diffstat (limited to 'app/api/auth')
| -rw-r--r-- | app/api/auth/[...nextauth]/saml/provider.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/api/auth/[...nextauth]/saml/provider.ts b/app/api/auth/[...nextauth]/saml/provider.ts index 8486a690..dfe3d830 100644 --- a/app/api/auth/[...nextauth]/saml/provider.ts +++ b/app/api/auth/[...nextauth]/saml/provider.ts @@ -228,6 +228,7 @@ export async function authenticateSAMLUser(userData: SAMLUser) { } } +// TODO: SecuritySetting 함수에서 가져올 것 // NextAuth JWT 토큰 생성 헬퍼 export async function createNextAuthToken(user: User): Promise<string> { const token = { @@ -239,7 +240,7 @@ export async function createNextAuthToken(user: User): Promise<string> { domain: user.domain, imageUrl: user.imageUrl, iat: Math.floor(Date.now() / 1000), - exp: Math.floor(Date.now() / 1000) + (30 * 24 * 60 * 60) // 30일 + exp: Math.floor(Date.now() / 1000) + (480 * 60) // 480분 }; const secret = process.env.NEXTAUTH_SECRET!; @@ -256,4 +257,3 @@ export function getSessionCookieName(): string { ? '__Secure-next-auth.session-token' : 'next-auth.session-token'; } -
\ No newline at end of file |
