Skip to content

Cant test with Postman/Insomnia anymore - dev environment fully unusable #10990

Backlog

Description

@MickL

Preliminary Checks

Description

Since 3.16.9 we cant work in local dev anymore as described in the docs here:

https://clerk.com/docs/guides/development/testing/postman-or-insomnia

In browser on localhost:

await window.Clerk.session.getToken({ template: '<the template name you chose above>' })

All requests are now unauthorized and local dev is basically impossible now!

const requestState = await useClerk().authenticateRequest(event.req);
// -> status: signed-out, reason: token-type-mismatch 

The problem is the following PR, published with 3.16.9:
#9469

Another big issue is that there is no opt-out, e.g. one could allow long-lived JWT on local dev but authenticateRequest() does not have this option.

Suggestion: Add opt-out to authenticateRequest()

Activity

  1. added
    needs-triage
    on Nov 24, 2026
  2. wobsoriano commented on Nov 24, 2026

    @wobsoriano
    Member

    Thanks for the report, and sorry for the trouble. The change in 3.16.9 is intentional, so we won't add an opt-out. JWT template tokens aren't tied to a session and keep working after it's revoked, so they're no longer accepted as session tokens.

    For Postman or Insomnia, use a session token with a longer lifetime instead:

    1. Sign in on your frontend that uses your development instance, then copy the session ID from the browser console.
    window.Clerk.session.id
    1. Create a token for that session with your secret key. Set expires_in_seconds to how long you need it.
    curl 'https://api.clerk.com/v1/sessions/sess_123/tokens' \
      --request POST \
      --header 'Content-Type: application/json' \
      --header "Authorization: Bearer $CLERK_SECRET_KEY" \
      --data '{ "expires_in_seconds": 86400 }'
    

    or

    clerkClient.sessions.getToken('sess_123', undefined, 86400)
    1. Paste the jwt value from the response as the Bearer token

    Stay signed in until you've created the token. Once created, it stays valid until it expires, even if you sign out, so keep the lifetime to hours or days. We're updating the Postman/Insomnia guide with these steps.

    Thanks!

  3. MickL commented on Nov 24, 2026

    @MickL
    Author

    If so, you may keep this open until the docs are updated

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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions