Skip to content

Commit c98d1ed

Browse files
committed
clean up authenticate context
1 parent e2ede5f commit c98d1ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/backend/src/tokens/authenticateContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class AuthenticateContext implements AuthenticateContext {
6767
private clerkRequest: ClerkRequest,
6868
options: AuthenticateRequestOptions,
6969
) {
70-
if (options.acceptsToken === TokenType.MachineToken) {
71-
// For machine tokens, we only need to set the header values.
70+
if (options.acceptsToken === TokenType.MachineToken || options.acceptsToken === TokenType.ApiKey) {
71+
// For non-session tokens, we only want to set the header values.
7272
this.initHeaderValues();
7373
} else {
7474
// Even though the options are assigned to this later in this function

0 commit comments

Comments
 (0)