Skip to content

Commit 18a562a

Browse files
committed
fix: 📝 add missing fields to the backend_config.toml file (#568)
1 parent c1aac3e commit 18a562a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

backend/backend_config.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,21 @@ default_page_size = 20
1818
# Requests exceeding this limit will be capped to this value
1919
max_page_size = 100
2020

21+
# Authentication configuration
2122
[auth]
23+
# JWT secret key for signing and verifying tokens (required)
24+
# Must be at least 32 bytes (64 hex characters) for HS256 algorithm
25+
# Can also be set via JWT_SECRET environment variable (takes precedence)
2226
jwt_secret = "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef"
27+
# JWT token expiration time in minutes (default: 300 = 5 hours)
28+
# This determines how long a user session remains valid
29+
session_expiration_minutes = 300
30+
# Authentication nonce expiration time in seconds (default: 300 = 5 minutes)
31+
# This determines how long a user has to complete the authentication flow
32+
nonce_expiration_seconds = 300
33+
# SIWE (Sign-In with Ethereum) domain used in authentication messages
34+
# Should match the domain where this backend is accessible (default: "localhost")
35+
siwe_domain = "localhost"
2336

2437
# StorageHub RPC configuration
2538
[storage_hub]

0 commit comments

Comments
 (0)