View Source Avalanche.TokenCache (Avalanche v0.13.0)
Token handling and caching.
Will create and cache a token (KEYPAIR_JWT
) from a private key and details or cache a given token (OAUTH
).
See: https://docs.snowflake.com/en/developer-guide/sql-api/authenticating.html
Summary
Functions
Fetches token from the cache or creates and caches token from given options.
Functions
@spec child_spec(any()) :: Supervisor.child_spec()
Fetches token from the cache or creates and caches token from given options.
Returns {"KEYPAIR_JWT", token}
or {"OAUTH", token}
.
@spec start_link(any()) :: Supervisor.on_start()