Authentication Provider Error: Grant missing session or misconfigured provider

Im not sure if this is relevant, but I had a similar issue when I was implementing google OAuth. What solved it for me was integrating adding the cors middleware to strapi and the frontend url as an approved domain like so