/sign
The sign API provides access to different request signer modules. Signer modules which are unavailable will export as null and won't be available from the signerModules object methods.
- Source
Requires
Methods
(async, inner) signer(req, res) → {Promise}
The signer method looks up a signerModules method matching the signer request parameter and passes the req/res objects as argument to the matched method.
The response from the method is returned with the HTTP response.
Parameters:
Name | Type | Description |
---|---|---|
req | Object | HTTP request. |
res | Object | HTTP response. |
req.params | Object | Request parameter. |
params.signer | string | Signer module to sign the request. |
- Source
Returns:
The promise resolves into the response from the signerModules method.
- Type:
- Promise