Skip to content

Commit 58b8df1

Browse files
fix: accept sk-ant-sid02 session keys for claude web
1 parent c236a4b commit 58b8df1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/services/clients/claude/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export class Claude {
7474
if (!sessionKey) {
7575
throw new Error('Session key required')
7676
}
77-
if (!sessionKey.startsWith('sk-ant-sid01')) {
78-
throw new Error('Session key invalid: Must be in the format sk-ant-sid01-*****')
77+
if (!sessionKey.startsWith('sk-ant-sid')) {
78+
throw new Error('Session key invalid: Must be in the format sk-ant-sid**-*****')
7979
}
8080
if (fetch) {
8181
this.fetch = fetch

0 commit comments

Comments
 (0)