SKIP_EMAIL_VERIFICATION_IN_DEV=true not working
I just upgraded my project to 0.15 and I'm trying to use SKIP_EMAIL_VERIFICATION_IN_DEV=true in my .env.server file, but it still asks me to verify on dev
SKIP_EMAIL_VERIFICATION_IN_DEV environment variable in Wasp. However, it's important to note that there isn't specific information about issues with this feature in version 0.15 or any known bugs related to it not working as expected.SKIP_EMAIL_VERIFICATION_IN_DEV environment variable should allow you to skip the email verification step in development mode. Here's how it should be set in your .env.server file:.env.server file is in the correct location (root of your Wasp project)..env.server file.main.wasp file, as this feature is specific to email authentication.SKIP_EMAIL_VERIFICATION_IN_DEV feature.SKIP_EMAIL_VERIFICATION_IN_DEV setting.SKIP_EMAIL_VERIFICATION_IN_DEV setting.In the meantime, as a workaround, you might need to manually verify email addresses in your development database or temporarily modify the auth logic to bypass verification for testing purposes. However, be cautious with any workarounds and make sure not to push such changes to production.
wasp db studio in your terminal to open the database GUI.isEmailVerified field to true.wasp start? app myApp {
...
emailSender: {
provider: Dummy,
}
} app myApp {
...
emailSender: {
provider: Dummy,
}
}SKIP_EMAIL_VERIFICATION_IN_DEVSKIP_EMAIL_VERIFICATION_IN_DEVSKIP_EMAIL_VERIFICATION_IN_DEVSKIP_EMAIL_VERIFICATION_IN_DEVSKIP_EMAIL_VERIFICATION_IN_DEVSKIP_EMAIL_VERIFICATION_IN_DEV=truewasp db studioisEmailVerified const newUserProviderData = await sanitizeAndSerializeProviderData<'email'>({
hashedPassword: args.password,
isEmailVerified: process.env.NODE_ENV === 'development', // Set to true in development
emailVerificationSentAt: null,
passwordResetSentAt: null,
}) const newUserProviderData = await sanitizeAndSerializeProviderData<'email'>({
hashedPassword: args.password,
isEmailVerified: process.env.NODE_ENV === 'development', // Automatically verify in development
emailVerificationSentAt: null,
passwordResetSentAt: null,
})