How To Guides
How to authenticate with JWT
Date | Responsible | Changes |
---|---|---|
May 8, 2023 | @Luis Fidelis | Initial version |
Ledger SDK allows users to authenticate to ledger by sending tokens.
The JWT options object (JwtConfig
) has the following definition
JWT configuration can be set and mixed at three different levels - SDK, client and request.
SDK - Securing SDK instance
SDK can be secured when initializing a new object by using the property secure
of SDK constructor options.
This can also be set dynamically after creating a new instance with the method setAuthParams
Client - Securing SDK Client
A client can be dynamically secured with the method setAuthParams
Request - Securing a API call
A request can be dynamically secured with the method setAuthParams
See About Authentication for more details.