Store JWT inside a httpOnly Cookie

System Information
  • Strapi Version:
  • Operating System: Windows 11
  • Database:
  • Node Version: 16
  • NPM Version:
  • Yarn Version:

Hello, how can I store JWT inside a httpOnly Cookie? I’m looking for a tutorial for Strapi v4 but all I could found was about v3. Thank you.

there is a plugin that is meant to do this (GitHub - bwyx/strapi-jwt-cookies: Securely use users-permissions's JWT on cookies 🍪) however it seems like it only works with REST API and not GraphQL

1 Like