Add cookie token lifetime configuration and implement base64 encoding/decoding methods

This commit is contained in:
admin committed 2026-10-08 16:22:47 +00:00
1 parent bf552e87cc
commit a1bbae383a
4 files changed
+27 -7

No files matched your search

+1
View File
@@ -90,6 +90,7 @@ $api_token = bin2hex(random_bytes(32));
$env .= "API_TOKEN_SIGNATURE=" . $api_token . "\n";
$env .= "DB_FILE=database.db";
$env .= "COOKIE_TOKEN_LIFETIME=86400";
file_put_contents(APP_PATH . ".env", $env);