Resolve "Configuratable token times" #40

Merged
leon.hoppe merged 4 commits from feature/config into dev 2024-12-21 15:03:48 +01:00
Showing only changes of commit 51c15eff4c - Show all commits

View File

@@ -28,6 +28,7 @@ by configuring your configuration to load these.
You can specify `Seconds`, `Minutes`, `Hours` and `Days` for either of the two token types.
These get combined to a single time span.
#### Configuration example
```json
"HopFrame": {
"Authentication": {
@@ -41,3 +42,10 @@ These get combined to a single time span.
}
}
```
#### Environment variables example
```dotenv
HOPFRAME__AUTHENTICATION__ACCESSTOKEN__MINUTES=30
HOPFRAME__AUTHENTICATION__REFRESHTOKEN__DAYS=10
HOPFRAME__AUTHENTICATION__REFRESHTOKEN__HOURS=5
```