WilsonLe / payload-oauth2

Plugin for PayloadCMS to integrate OAuth2
https://www.npmjs.com/package/payload-oauth2
MIT License
42 stars 6 forks source link

Broken in latest beta #11

Open MatthiasGrandl opened 1 week ago

MatthiasGrandl commented 1 week ago

https://github.com/payloadcms/payload/releases/tag/v3.0.0-beta.112

there were some auth changes here, which presumably broke this plugin

MatthiasGrandl commented 1 week ago
TypeError: Cannot read properties of undefined (reading 'cookies')
    at generatePayloadCookie (webpack-internal:///(rsc)/../node_modules/.pnpm/payload@3.0.0-beta.112_graphql@16.9.0_monaco-editor@0.52.0_react-dom@19.0.0-rc-3edc000d-20240_incofvvsjgqtjnxeucoufluvym/node_modules/payload/dist/auth/cookies.js:74:50)
    at Object.handler (webpack-internal:///(rsc)/./src/oauth2/callback-endpoint.ts:152:94)
MatthiasGrandl commented 2 days ago

this has been fixed in the latest beta, so I am closing this issue

MatthiasGrandl commented 1 day ago

sorry false alarm, it's still broken :(

MatthiasGrandl commented 22 hours ago

13 works for me