feat: delete users - not tested
This commit is contained in:
@@ -122,6 +122,8 @@ const configSchema = z.object({
|
||||
const secretsSchema = z.object({
|
||||
postgres_password: z.string(),
|
||||
auth0_client_secret: z.string(),
|
||||
auth0_management_client_id: z.string(),
|
||||
auth0_management_client_secret: z.string(),
|
||||
google_maps_api_key: z.string(),
|
||||
resend_api_key: z.string(),
|
||||
});
|
||||
@@ -137,6 +139,7 @@ export interface AppConfiguration {
|
||||
getDatabaseUrl(): string;
|
||||
getRedisUrl(): string;
|
||||
getAuth0Config(): { domain: string; audience: string; clientSecret: string };
|
||||
getAuth0ManagementConfig(): { domain: string; clientId: string; clientSecret: string };
|
||||
}
|
||||
|
||||
class ConfigurationLoader {
|
||||
@@ -171,6 +174,8 @@ class ConfigurationLoader {
|
||||
const secretFiles = [
|
||||
'postgres-password',
|
||||
'auth0-client-secret',
|
||||
'auth0-management-client-id',
|
||||
'auth0-management-client-secret',
|
||||
'google-maps-api-key',
|
||||
'resend-api-key',
|
||||
];
|
||||
@@ -227,6 +232,14 @@ class ConfigurationLoader {
|
||||
clientSecret: secrets.auth0_client_secret,
|
||||
};
|
||||
},
|
||||
|
||||
getAuth0ManagementConfig() {
|
||||
return {
|
||||
domain: config.auth0.domain,
|
||||
clientId: secrets.auth0_management_client_id,
|
||||
clientSecret: secrets.auth0_management_client_secret,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
// Set RESEND_API_KEY in environment for EmailService
|
||||
|
||||
Reference in New Issue
Block a user