update docstrings and readme

This commit is contained in:
Diogo Sousa
2023-10-06 18:24:33 +01:00
parent 59fcce4466
commit 66f9ffd845
2 changed files with 2 additions and 2 deletions

View File

@@ -355,7 +355,7 @@ To apply an environment variable use one of the following:
The variables we use are:
- `OPENBB_API_AUTH`: enables API authentication for command endpoints
- `OPENBB_API_AUTH`: enables API endpoint authentication
- `OPENBB_API_USERNAME`: sets API username
- `OPENBB_API_PASSWORD`: sets API password
- `OPENBB_API_AUTH_EXTENSION`: specifies which authentication extension to use

View File

@@ -19,7 +19,7 @@ class Env(metaclass=SingletonMeta):
@property
def API_AUTH(self) -> bool:
"""API authentication: enables commands authentication in FastAPI"""
"""API authentication: enables API endpoint authentication"""
return self.str2bool(self._environ.get("OPENBB_API_AUTH", False))
@property