Disable google auth

How to disable google auth in an existing wasp project that uses google auth?
1 Reply
kapa.ai
kapa.ai3mo ago
Hi @isaiah. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To disable Google Authentication in an existing Wasp project, you need to remove or comment out the google: {} line in the auth.methods dictionary in your main.wasp file. Here is how your auth block might look like before disabling Google Auth:
app myApp {
wasp: {
version: "^0.13.0"
},
title: "My App",
auth: {
userEntity: User,
methods: {
google: {}
},
onAuthFailedRedirectTo: "/login"
},
}
app myApp {
wasp: {
version: "^0.13.0"
},
title: "My App",
auth: {
userEntity: User,
methods: {
google: {}
},
onAuthFailedRedirectTo: "/login"
},
}
And here is how it should look like after disabling Google Auth:
app myApp {
wasp: {
version: "^0.13.0"
},
title: "My App",
auth: {
userEntity: User,
methods: {
// google: {}
},
onAuthFailedRedirectTo: "/login"
},
}
app myApp {
wasp: {
version: "^0.13.0"
},
title: "My App",
auth: {
userEntity: User,
methods: {
// google: {}
},
onAuthFailedRedirectTo: "/login"
},
}
After making these changes, you should run your Wasp project again to see the changes take effect. Please note that this will disable Google Authentication for your Wasp project, and users will no longer be able to log in using their Google accounts. Source: Wasp Docs - Google Auth (https://wasp-lang.dev/docs/auth/social-auth/google#default-behaviour) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @isaiah, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?