novuhq / novu

Open-Source Notification Platform. Embeddable Notification Center, E-mail, Push and Slack Integrations.
https://novu.co
Other
35.39k stars 3.92k forks source link

fix(web): Inject latest Clerk JWT via Axios interceptor #6522

Closed SokratisVidros closed 1 month ago

SokratisVidros commented 2 months ago

What changed? Why was the change needed?

Fetching the Clerk JWT should always be done via the Clerk SDK, not the __session cookie that acts as a cache and creates the risk of getting an outdated JWT.

Screenshots

image (1)