mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
update translations
This commit is contained in:
@@ -231,16 +231,11 @@ const getAuthConfig = () => {
|
||||
},
|
||||
|
||||
plugins: [
|
||||
dash(),
|
||||
openAPI(),
|
||||
apiKey({
|
||||
enableSessionForAPIKeys: true,
|
||||
rateLimit: {
|
||||
enabled: true,
|
||||
timeWindow: 1000 * 60 * 60 * 24, // 1 day
|
||||
maxRequests: 500, // 500 requests per day
|
||||
},
|
||||
}),
|
||||
genericOAuth({ config: authConfigs }),
|
||||
twoFactor({ issuer: "Reactive Resume" }),
|
||||
dash({ apiKey: env.BETTER_AUTH_API_KEY }),
|
||||
apiKey({ enableSessionForAPIKeys: true, rateLimit: { enabled: false } }),
|
||||
username({
|
||||
minUsernameLength: 3,
|
||||
maxUsernameLength: 64,
|
||||
@@ -249,8 +244,6 @@ const getAuthConfig = () => {
|
||||
usernameValidator: (username) => /^[a-z0-9._-]+$/.test(username),
|
||||
validationOrder: { username: "post-normalization", displayUsername: "post-normalization" },
|
||||
}),
|
||||
twoFactor({ issuer: "Reactive Resume" }),
|
||||
genericOAuth({ config: authConfigs }),
|
||||
],
|
||||
});
|
||||
};
|
||||
|
||||
@@ -22,6 +22,7 @@ export const env = createEnv({
|
||||
|
||||
// Authentication
|
||||
AUTH_SECRET: z.string().min(1),
|
||||
BETTER_AUTH_API_KEY: z.string().min(1).optional(),
|
||||
|
||||
// Social Auth (Google)
|
||||
GOOGLE_CLIENT_ID: z.string().min(1).optional(),
|
||||
|
||||
Reference in New Issue
Block a user