Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ SUPABASE_JWT_SECRET=""
CHALLENGE_TYPE="SIGNATURE"
CHALLENGE_VERSION="1"
CHALLENGE_BUFFER_SIZE=128
CHALLENGE_TTL_MS=30000 # 30 seconds
CHALLENGE_ROTATION_TTL_MS=60000 # 60 seconds - Longer because the shares need to be regenerated, which can take some time.
CHALLENGE_TTL_MS=60000 # 60 seconds
CHALLENGE_ROTATION_TTL_MS=120000 # 120 seconds - Longer because the shares need to be regenerated, which can take some time.

# Shares:
SHARE_ACTIVE_TTL_MS=600000 # 10 minutes
SHARE_ACTIVE_TTL_MS=86400000 # 24 hours
SHARE_INACTIVE_TTL_MS=7776000000 # 3 months
SHARE_MAX_ROTATION_IGNORES=3 # This happens automatically, so it should rarely be ignored
SHARE_MAX_FAILED_ACTIVATION_ATTEMPTS=3
Expand Down
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const nextConfig = {
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" }, // replace this your actual origin
{ key: "Access-Control-Allow-Methods", value: "GET,DELETE,PATCH,POST,PUT" },
// { key: "Access-Control-Allow-Headers", value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" },
{ key: "Access-Control-Allow-Headers", value: "*" },
{ key: "Access-Control-Allow-Headers", value: "Content-Type, Authorization, User-Agent, X-Application-Id, X-Client-Id, X-Device-Nonce" },
// { key: "Access-Control-Allow-Headers", value: "*" },
]
}
]
Expand Down