data Signer :: # Effect -> Type
Signing function which will be used to sign JWT's in the credentials object.
It could be constracted out of mkSigner or more low level function fromRawSigner.
Input to signing function
Result of signing function.
mkSigner :: forall eff. (SigningInput -> Aff eff Signature) -> Eff eff (Signer eff)
Takes Aff based signing function and retusn Signer.
type RawSigner eff = EffFn2 eff SigningInput (SignerCallback eff) Unit
Low level representation of Signer
type SignerCallback eff = EffFn2 eff (Nullable Error) (Nullable Signature) Unit
fromRawSigner :: forall eff. RawSigner eff -> Signer eff