MVP for API Key authentication

This commit is contained in:
ian committed 2025-12-03 14:51:59 +07:00
1 parent 9413c442df
commit 347e0192e2
17 files changed
+733 -49

No files matched your search

+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',