Token authorization middleware for the BYU OIT SDK
npm install @byu-oit-sdk/middleware-tokenThis package facilitates adding an access token from the
configured credential provider.
The location of the access token on the request depends on which credential provider is used.
| Credential Provider | Location default |
|---------------------|-----------------------------|
| Client Credentials | Authorization header |
| Authorization Code | Authorization header |
| API Key | x-api-client-token header |
The access token may be located in the header or querystring (only API Key Provider). The default authorization
header prefix is Bearer .