Gets the jwt and creates a function that extracts the payload from that jwt.
Object that contains specific properties to configure the request
authenticate - A function that authenticates the jwt and returns the payload after verifying/decoding it.
Gets the jwt and creates a function that extracts the payload from that jwt.