upate session dan ws

This commit is contained in:
Fanrouver
2026-02-02 14:47:00 +07:00
parent c899a71fd8
commit 0428017cac
7 changed files with 193 additions and 42 deletions

No files matched your search

+3
View File
@@ -74,6 +74,8 @@ export default defineEventHandler(async (event) => {
accessTokenPayload?: any
fullSessionObject?: any
status?: string
remainingSeconds?: number
idToken?: string
} = {
success: true,
// Basic User Info
@@ -85,6 +87,7 @@ export default defineEventHandler(async (event) => {
// Session Timestamps (optional in SessionResponse)
expiresAt: session.expiresAt,
remainingSeconds: Math.max(0, Math.floor((session.expiresAt - Date.now()) / 1000)),
// Additional debug fields (not in SessionResponse interface)
idToken: session.idToken,