You may implement ServiceAccountTokenProvider interface to securely obtain service account token when using OKE workload identity. ServiceAccountTokenProvider may be set as serviceAccountTokenProvider of IAMConfig. Instead of a class implementing this interface, you may also set serviceAccountTokenProvider to a function with the signature of loadServiceAccountToken.
Asynchronously load service account token.
Promise resolved with a string service account token or rejected with an error
Generated using TypeDoc
You may implement ServiceAccountTokenProvider interface to securely obtain service account token when using OKE workload identity. ServiceAccountTokenProvider may be set as serviceAccountTokenProvider of IAMConfig. Instead of a class implementing this interface, you may also set serviceAccountTokenProvider to a function with the signature of loadServiceAccountToken.
See