Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit c60eb29

Browse files
authored
fix: Prefer /client_sessions/get_or_create (#286)
1 parent 991166c commit c60eb29

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/seam-connect/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ Use something with sufficient entropy known only to the owner of the client sess
162162
})
163163

164164
return makeRequest(client, {
165-
method: "PUT",
166-
url: "/client_sessions/create",
165+
method: "POST",
166+
url: "/client_sessions/get_or_create",
167167
data: { user_identifier_key: options.userIdentifierKey },
168168
})
169169
}

src/seam-connect/routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ export abstract class Routes {
554554
this.makeRequestAndFormat<ClientSessionsGetOrCreateResponse>(
555555
"client_session",
556556
{
557-
url: "/client_sessions/create",
558-
method: "PUT",
557+
url: "/client_sessions/get_or_create",
558+
method: "POST",
559559
data,
560560
}
561561
),

0 commit comments

Comments
 (0)