Skip to content

Commit 7d47f5f

Browse files
committed
fix(auth): enable Google OAuth in presets and update user role assignment in auth service
1 parent ecda024 commit 7d47f5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/create-tbk-app/src/constants/presets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const PRESETS: Record<string, PresetConfig> = {
3939
config: {
4040
auth: 'jwt-sessions',
4141
sessionDriver: 'redis',
42-
googleOAuth: false,
42+
googleOAuth: true,
4343
cache: 'redis',
4444
queues: true,
4545
storage: 's3',

packages/create-tbk-app/templates/auth/src/modules/auth/auth.service.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const registerUserByEmail = async (
114114

115115
const otp = config.OTP_VERIFICATION_ENABLED ? generateOtp({ length: 6, charset: 'hex' }) : null;
116116

117-
const user = await createUser({ ...rest, role: 'DEFAULT_USER', otp }, false);
117+
const user = await createUser({ ...rest, role: ROLE_ENUM.DEFAULT_USER, otp }, false);
118118

119119
return user;
120120
};

0 commit comments

Comments
 (0)