Resolve "Configuratable token times" #40
@@ -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.
|
You can specify `Seconds`, `Minutes`, `Hours` and `Days` for either of the two token types.
|
||||||
These get combined to a single time span.
|
These get combined to a single time span.
|
||||||
|
|
||||||
|
#### Configuration example
|
||||||
```json
|
```json
|
||||||
"HopFrame": {
|
"HopFrame": {
|
||||||
"Authentication": {
|
"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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user