AOSSIE-Org / AOSSIE-Org/InPactAI

BUG:Update JWT verification to support ES256 with Supabase JWK

Open
#275 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
102
Forks
144
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

## 📌 Issue Overview
Updated the JWT verification logic to work with ES256 using the Supabase JWK public key

## 🔍 Steps to Reproduce
- Switched JWT decoding to ES256 algorithm
- Used JWK public key from Supabase for verification
- Verified token audience as "authenticated"

## 💡 Result
- Authentication endpoints now work correctly end-to-end
- Frontend requests no longer show `Failed to fetch` errors

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.