parity(auth): getClaims() should return typed AuthInvalidJwtError for expired JWT [from supabase-js]
Los mantenedores suelen responder en 1 día
@Tr00d ya está trabajando en esto.
Desde el 1/7/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
[!WARNING]
Auto-generated parity issue — may be a false positive.This issue was created automatically by
/sync-sdk-parityfrom a heuristic analysis of recentsupabase-jscommits. The tooling has limited insight into language-specific idioms and may have:
- misidentified a JS-only change as cross-language relevant,
- missed an existing implementation in this SDK under a different name,
- or proposed an API shape that doesn't fit this language's conventions.
It is the SDK author's responsibility to validate the need before implementing. If this change does not apply to this SDK, please close the issue with a short note explaining why.
SDK Parity: C# implementation needed
A bug fix was made in supabase-js auth that may apply to this repository. Please confirm applicability before starting work.
Reference Implementation (supabase-js)
- Commit:
0dc5f80 - PR: supabase/supabase-js#2395
- Module: auth
- Type: bug-fix
What Changed
getClaims() now catches expired-JWT errors and rethrows as AuthInvalidJwtError, ensuring callers receive a stable named error type.
Implementation Guidance (C#)
public class AuthInvalidJwtException : AuthException
{
public AuthInvalidJwtException(string message) : base(message) { }
}
// GetClaims() with expired JWT:
// throw new AuthInvalidJwtException("JWT has expired");
// Callers: catch (AuthInvalidJwtException e) { ... }
Key Behaviors to Match
- Expired JWT in
GetClaims()throws a specific named exception type - Distinguishable from generic
AuthExceptionvia type check
Acceptance Criteria
-
GetClaims()with expired JWT throwsAuthInvalidJwtException - Distinguishable from generic
AuthException - Test covers expired JWT case
Context
- supabase-js version: v2.107.0
- Related: SDK-1035 (dart), SDK-1036 (py), SDK-1037 (swift)
- Parity tracking: Auto-generated by
/sync-sdk-parity
- Lenguaje dominante
- C#
- Estrellas
- 704
- Forks
- 111
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 82
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de supabase/supabase-csharp
-
OAuth State Error for social providers since Supabase.Gotrue v6.1.0Quizá libre de nuevo @Tr00d la tomó hace 64 días y no hay ningún pull request abierto. Abiertobug
supabase/supabase-csharp#377 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
parity(functions): never send new-format API key as Authorization Bearer [from supabase-js]Quizá libre de nuevo @Tr00d la tomó hace 102 días y no hay ningún pull request abierto. Abiertobug parity
supabase/supabase-csharp#279 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
parity(client): unrecognized sb_ API key subtypes are silently accepted, no warning [from supabase-js]Quizá libre de nuevo @Tr00d la tomó hace 102 días y no hay ningún pull request abierto. Abiertoparity
supabase/supabase-csharp#278 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
parity(realtime): add replication_ready broadcast option and system event payload [from supabase-js]Quizá libre de nuevo @Tr00d la tomó hace 116 días y no hay ningún pull request abierto. Abiertoparity
supabase/supabase-csharp#272 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
parity(storage): expose purgeCache for buckets and single objects [from supabase-js]Quizá libre de nuevo @Tr00d la tomó hace 116 días y no hay ningún pull request abierto. Abiertoparity
supabase/supabase-csharp#271 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de supabase/supabase-csharp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
enhancement no-stack-trace
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
greenshot/greenshot#1618 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
squad/utforming status/triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Altinn/altinn-studio#21565 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Tyrrrz/YoutubeDownloader#912 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día