Use session cookies and logged in user in ssr
Related https://github.com/opencollective/opencollective/issues/7423 Require https://github.com/opencollective/opencollective-api/pull/10165
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| opencollective-frontend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 12, 2024 11:35am |
| opencollective-styleguide | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 12, 2024 11:35am |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name Status Preview Comments Updated (UTC) opencollective-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 0:39am opencollective-styleguide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 0:39am
Looks good to me! Not sure if we need to update the places that are calling the
confirmEmailandsetPasswordmutations? It worked out of the box when I tested an email change, I assume passing the new token togetLoggedInUserwill end up exchanging it on the API side and getting a cookie back
Yes, the API is using the token in the Authorization header before the cookie.