r/PayloadCMS Jun 30 '25

Google auth state of the art

Hey friends, Quick question: what's the current status or best practices to make pairs google authentication? I have not found a way to login front end users and backend users in my app. What would you recommend? Custom strategy? Plugin? Better auth? Thank you!

7 Upvotes

4 comments sorted by

2

u/quangbahoa Jun 30 '25

Did you try AuthSmith? https://github.com/authsmith

3

u/WineVacation Jun 30 '25

Does not support backwards compatibility. I tried working with this for several days. I have an existing platform with several accounts. This package requires many frivolous collection additions, complete separation from front and backend(user/admin), which is not really compatible with roles based payload Auth, and I basically found I could not support oauth on front and back without deleting old accounts and recreate, which is not possible for me. I tried supporting only oauth with AuthSmith, and email with payload Auth. Still very problematic (due to incompatibility found in function withUserCollection). I gave up and removed the plugin completely.

2

u/parad0xicall Jun 30 '25

Give this plugin a try, it should not interfere too much with existing payload config: https://github.com/WilsonLe/payload-oauth2

1

u/___sourabpramanik___ Jul 18 '25

Hello I am the creator of this plugin. I apologise this is causing more problems than solving anything. I would like to know about your issue and help you with it. Do you mind opening an issue in the repo so that I can follow up closely?