You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2024. It is now read-only.
"Using API Key as Client Session Token is deprecated. Please use the clientSessionToken option instead."
81
85
)
82
-
returnapiKey
86
+
return{"client-session-token": apiKey}
83
87
}
84
88
if(!apiKey.startsWith("seam_at")&&workspaceId)
85
89
thrownewError(
86
90
"You can't use API Key Authentication AND specify a workspace. Your API Key only works for the workspace it was created in. To use Session Key Authentication with multi-workspace support, contact Seam support."
87
91
)
88
-
returnapiKey
92
+
return{authorization: `Bearer ${apiKey}`}
89
93
}
90
94
thrownewError(
91
95
"Must provide either clientSessionToken or apiKey (API Key or Access Token with Workspace ID)."
@@ -101,12 +105,15 @@ export class Seam extends Routes {
...(!workspaceId ? {} : {"Seam-Workspace": workspaceId}),// only needed for session key authentication
111
118
// 'seam-sdk-version': version // TODO: resolve error Access to XMLHttpRequest at 'http://localhost:3020/devices/list' from origin 'http://localhost:5173' has been blocked by CORS policy: Request header field seam-sdk-version is not allowed by Access-Control-Allow-Headers in preflight response.
0 commit comments