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