Object - auth : OutboundAuthProvider
Represents the outbound Auth provider. Any type of implementation such as JWT and OAuth2 should be object-wise similar
()returns string | Error
Generates a token for the outbound request.
Return Type(string | Error)
The String token or the
Erroroccurred when generating the token.
(map data)returns string | Error | ()
Inspects the incoming data and generates the token as needed.
- data map
Map of the data, which is extracted from the HTTP response.
Return Type(string | Error | ())
The String token, the
Erroroccurred when generating the token, or
()if nothing is to be returned.