MVP for API Key authentication

This commit is contained in:
ian
2025-12-03 14:51:59 +07:00
parent 9413c442df
commit 347e0192e2
17 changed files with 733 additions and 49 deletions
+6
View File
@@ -27,6 +27,12 @@ export const jwt = {
},
}
export const apiAuth = {
apiPrefix: process.env.AUTH_API_KEY_PREFIX || 'ak_prod',
secretPrefix: process.env.AUTH_SECRET_KEY_PREFIX || 'sk_prod',
skewSeconds: Number(process.env.API_KEY_SKEW_SECONDS || 300),
}
export const s3Configs = {
config: {
region: process.env.S3_REGION || 'us-east-1',