thgh / payload-plugin-oauth

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

Feat: update user info during signin flow #23

Closed augustgaukstad closed 3 months ago

augustgaukstad commented 5 months ago

Added payload.update if user has been found in the Payload user-collection, so the user object in PayloadCMS syncs with potential new data from the userinfo-function.

Resolves #22

Augigauki commented 4 months ago

Hey @thgh - any ETA on when this might be merged? This feature would greatly enhance my Payload-app as I use app roles in Azure to control access control in PayloadCMS

bote795 commented 4 months ago

i do think this should be an optional feature like pass in a field to enable this, not sure if everyone would want this.

Augigauki commented 4 months ago

Added a quick conditional to allow for choosing to update the user info on sign in or not.

thgh commented 3 months ago

Thanks for the PR! Released in v2.2.0 🎉