Skip to content

Conversation

@pimterry
Copy link
Contributor

Fixes #107

Before this change, when serving locally all Authorization bearer headers were parsed as JWTs. That breaks if anybody is using bearer headers with any other kind of token, and makes it impossible to test such functions locally.

This PR adds the Identity clientContext only if the header exists and can be parsed. If it can't be parsed, it silently falls back to the default {} instead.

@swyxio
Copy link
Contributor

swyxio commented Jan 31, 2019

sweet!

@swyxio swyxio merged commit 1b05e08 into netlify:master Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants