Skip to content

Commit 70439dd

Browse files
committed
feat: capture session ID in auth response
1 parent 324a5be commit 70439dd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/kotlin/com/ctrlhub/core/auth/response/AuthResponses.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ data class AuthFlowResponse(
1313
@Serializable
1414
data class SessionResponse(
1515
val active: Boolean,
16+
val id: String,
1617

1718
@Serializable(with = LocalDateTimeSerializer::class)
1819
@SerialName("expires_at") val expiresAt: LocalDateTime,

src/test/resources/auth/session-success-response.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"session_token": "ses-123",
33
"session": {
4+
"id": "c17267e4-1b2c-468e-9334-9dd7082933db",
45
"active": true,
56
"expires_at": "2025-01-15T14:04:34.245708802Z",
67
"authenticated_at": "2025-01-15T14:04:34.245708802Z"

0 commit comments

Comments
 (0)