ericclemmons / ericclemmons/node-recorder

Record identified calls when one is missing

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
97
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Here's the scenario:

1. Today:
1. Get access token (recorded).
1. Get data with access token (recorded).
1. Tomorrow:
1. Get access token (replayed, same user).
1. Get data with access token **fails because of `401`**.

The problem here is that we replay a fixture for that expired access token, but the new data calls need a _valid_ token.

A couple ways to remedy this:

- The easiest way is that the `normalizer` should not `delete` any properties (e.g. `sig`, or possibly a date) that would replay old tokens for new requests.
- The harder way is to re-record all previously replayed requests that share that same identity. (However, what will this mean for previously-recorded responses that depend on those headers?)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.