Secret.get_value

Secret.get_value() → string

Returns the stored value of a secret as a string.

Returns

string

Examples

# secrets are case-sensitive
secret = redivis.user("my_username").secret("EXTERNAL_API_TOKEN")

# Avoid printing secrets, but rather pass them to other methods as needed
make_http_request("https://example.com/api", auth_token=secret.get_value())

Last updated

Was this helpful?