Object -
jwt
:
OutboundJwtAuthProvider
Represents outbound JWT authenticator.
Constructor
__init
(JwtIssuerConfig? jwtIssuerConfig)
- jwtIssuerConfig JwtIssuerConfig? ()
-
JWT issuer configurations
Methods
generateToken
Generate token for JWT authentication.
inspect
Inspect the incoming data and generate the token for JWT authentication.
Fields
- jwtIssuerConfig JwtIssuerConfig?
-
JWT issuer configurations
Generate token for JWT authentication.
-
Return Type
(string | Error) Generated token or
auth:Error
if an error occurred during the JWT issuing or validation
Inspect the incoming data and generate the token for JWT authentication.
Parameters
- data map
-
Map of data which is extracted from the HTTP response
-
Return Type
(string | Error | ()) String token, or
auth:Error
occurred when generating token or()
if nothing to be returned