@blossm/forwarded-token 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,4 +2,8 @@
2
2
  // query string: query strings are written to request logs.
3
3
  export const header = "blossm-token";
4
4
 
5
+ // A request made for a user by a service on another network carries that
6
+ // network's own token here, beside the user's: the network vouches for it.
7
+ export const networkHeader = "blossm-network-token";
8
+
5
9
  export default (req) => req.headers[header];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blossm/forwarded-token",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "The header that carries a caller's token between services, and how to read it from a request.",
5
5
  "main": "index.js",
6
6
  "type": "module",