Skip to content

Commit 86083cd

Browse files
authored
Apply suggestions from code review
1 parent db3ede4 commit 86083cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/seam/connect/auth.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ const getAuthHeadersForApiKey = ({
3434

3535
if (isAccessToken(apiKey)) {
3636
throw new InvalidSeamTokenError(
37-
'An access token cannot be used as an apiKey without specifying a workspaceId',
37+
'An access token cannot be used as an apiKey',
3838
)
3939
}
4040

4141
if (isJwt(apiKey) || !isSeamToken(apiKey)) {
4242
throw new InvalidSeamTokenError(
43-
`Unknown or Invalid apiKey format, expected token to start with ${tokenPrefix}`,
43+
`Unknown or invalid apiKey format, expected token to start with ${tokenPrefix}`,
4444
)
4545
}
4646

@@ -66,7 +66,7 @@ const getAuthHeadersForClientSessionToken = ({
6666

6767
export class InvalidSeamTokenError extends Error {
6868
constructor(message: string) {
69-
super(`SeamHttp received an authorization invalid token: ${message}`)
69+
super(`SeamHttp received an invalid token: ${message}`)
7070
this.name = this.constructor.name
7171
Error.captureStackTrace(this, this.constructor)
7272
}

0 commit comments

Comments
 (0)