mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
Implement OpenID Connect Authentication Strategy (works with Keycloak, Authentik etc.)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { createZodDto } from "nestjs-zod/dto";
|
||||
import { z } from "zod";
|
||||
|
||||
const authProvidersSchema = z.array(z.enum(["email", "github", "google"]));
|
||||
const authProvidersSchema = z.array(z.enum(["email", "github", "google", "openid"]));
|
||||
|
||||
export class AuthProvidersDto extends createZodDto(authProvidersSchema) {}
|
||||
|
||||
@ -26,7 +26,7 @@ export const userSchema = z.object({
|
||||
locale: z.string().default("en-US"),
|
||||
emailVerified: z.boolean().default(false),
|
||||
twoFactorEnabled: z.boolean().default(false),
|
||||
provider: z.enum(["email", "github", "google"]).default("email"),
|
||||
provider: z.enum(["email", "github", "google", "openid"]).default("email"),
|
||||
createdAt: dateSchema,
|
||||
updatedAt: dateSchema,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user