We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2ede5f commit c98d1edCopy full SHA for c98d1ed
1 file changed
packages/backend/src/tokens/authenticateContext.ts
@@ -67,8 +67,8 @@ class AuthenticateContext implements AuthenticateContext {
67
private clerkRequest: ClerkRequest,
68
options: AuthenticateRequestOptions,
69
) {
70
- if (options.acceptsToken === TokenType.MachineToken) {
71
- // For machine tokens, we only need to set the header values.
+ if (options.acceptsToken === TokenType.MachineToken || options.acceptsToken === TokenType.ApiKey) {
+ // For non-session tokens, we only want to set the header values.
72
this.initHeaderValues();
73
} else {
74
// Even though the options are assigned to this later in this function
0 commit comments