@labdigital/federated-token-yoga
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Federated Token - Yoga Plugin

npm

This packages provides a GraphQL Yoga plugin so that for Yoga can be used as a federated service.

Usage

  • useFederatedToken() - The plugin for federated services that reads the token passed in the x-access-token header and stores it on the context as federatedToken.

When a federated services creates a new token (when non exist) it can also return a refresh token in the x-refresh-token header. The gateway will then encrypt all refresh tokens and encrypt them before passing them to the client as x-refresh-token header.

Package Sidebar

Install

npm i @labdigital/federated-token-yoga

Weekly Downloads

142

Version

2.0.0

License

MIT

Unpacked Size

12.4 kB

Total Files

8

Last publish

Collaborators

  • pimvernooij
  • mvantellingen
  • korsvanloon
  • blurrah
  • bramkaashoek