Class: ClientBearerTokenAuthHandler
Isolated
Defines the Bearer token auth handler for client authentication.
Constructor
Initializes the Bearer token auth handler for client authentication.
init (BearerTokenConfig config)
- config BearerTokenConfig
The Bearer token
Methods
enrich | Enriches the headers with the relevant authentication requirements. |
enrich
Isolated Function
Enriches the headers with the relevant authentication requirements.
Return Type
(map<string | string[ ]> | ClientAuthError)The Bearer token as a string
or else a grpc:ClientAuthError
in case of an error