upate session dan ws
This commit is contained in:
No files matched your search
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user