JWT's in server side cookies using the Strapi user-permissions plugin google auth

System Information
  • Strapi Version: 3.6.9
  • Database: mongo DB
  • Node Version: 16.14.0
  • NPM Version: 8.3.1

Following this tutorial about httpOnly cookie authentication, successfully, I am now stuck on what to do next when authenticating with a third-party provider.

Here’s why.

My frontend authentication logic consists of an authentication context provider which wraps around all the components of my app.

I have done this such that any action type dispatched i.e LOGIN/LOGOUT, any component that has anything to do with the state of user auth should listen and respond accordingly to the dispatch action type.

For example, the <Navbar /> component may want to display links of login and logout based on those dispatched states.

MY PROBLEM:

How do I work around a solution that issues httpOnly cookies on authentication using a third-party provider like google, like the local provider would after following this tutorial?