/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.

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:
NameTypeDescription
reqObject

HTTP request.

resObject

HTTP response.

req.paramsObject

Request parameter.

params.signerstring

Signer module to sign the request.

Returns:

The promise resolves into the response from the signerModules method.

Type: 
Promise