thgh / payload-plugin-oauth

Add oAuth sign in to your Payload CMS site
MIT License
79 stars 15 forks source link

Does this work with payload v3? #27

Open bote795 opened 2 months ago

Augigauki commented 2 months ago

Also interested in this, seeing that the beta is seemingly getting close to being released as stable 👀

thgh commented 2 months ago

I would expect not because of passport and how it depends on express middleware. Anybody here that used plugins with payload 3?

Augigauki commented 2 months ago

Haven't used Payload V3 much myself yet, waiting for a stable release before starting to migrate a prod-app currently running on V2.

V3 is basically a NextJS app, so no Express-server, no.

I imagine V3-support would require a total rewrite. I'm not well versed in oAuth2 or auth in general, hence why I seek plugins for it like this one 😛

WilsonLe commented 1 month ago

I got a simple implementation that works for v3 with no dependencies. It is heavily influence by this plugin.

https://github.com/WilsonLe/payload-oauth2