Create the signature using the key information from the given struct
config
struct
Required
A struct with the following values: - algorithm : algorithm used for signing. - generateIssuedAt : boolean to indicate whether to generate "iat" field - generateJti : boolean to indicate whether to generate "jti" field