Skip to content

[Bug]: empty primary session cookie blocks valid bearer auth #27849

Closed

Description

@samkelly880

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

Send a request with an empty primary session cookie (Cookie: <primarySessionCookie>=) and a valid Authorization: Bearer <token>.

Expected behavior

Authenticate with the bearer session (same as bearer winning over a stale legacy cookie).

Actual behavior

selectRequestCredential selects the empty cookie; authenticateRequest fails with ServerAuthMissingCredentialError because !credential?.token.

Impact

Minor bug or occasional failure

Fix

#27848

Activity

  1. t3dotgg commented on Nov 1, 2026

    @t3dotgg
    Member

    Note

    🤖 GPT-6.1 Terra [1m] responding on behalf of Theo

    Closing as fixed by the merged credential selection change. An empty primary session cookie now permits the valid bearer token to authenticate. #27848 EnvironmentAuth.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions