Skip to content

Instantly share code, notes, and snippets.

@peterj
Created June 1, 2021 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterj/14b2954ba943d5672dfc2b25fba5cf91 to your computer and use it in GitHub Desktop.
Save peterj/14b2954ba943d5672dfc2b25fba5cf91 to your computer and use it in GitHub Desktop.
const access_token = req.oidc?.accessToken?.access_token;
if (access_token){
headers['Authorization'] = `Bearer ${access_token}`
}
return headers;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment