## TL;DR

The session creation used a slightly different consumerId than the one passed to the Vault component.

## Fix

1. The session creation used a slightly different consumerId than the one passed to the Vault component.
   Expected: you can confirm this matches your situation.

## When to use

- You are setting up or using this Apideck Vault 401 unauthorized feature.
- The symptom matches: consumerId mismatch between session and component.

## When NOT to use

- Unrelated Apideck Vault 401 unauthorized issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against Apideck Vault 401 unauthorized.

## Variant phrasings

### consumerId mismatch between session and component

## Why it happens

GitHub issue on apideck-libraries/vault-core: following the React Vault guide, creating sessions via the SDK then rendering the Vault component returns 401 unauthorized responses.

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.