parity(auth): getClaims() should return typed AuthInvalidJwtError for expired JWT [from supabase-js]
Maintainer thường phản hồi trong vòng 1 ngày
@Tr00d đang làm issue này rồi.
Từ ngày 1/7/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
[!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
- Ngôn ngữ chính
- C#
- Star
- 705
- Fork
- 111
- Merge trung bình
- 18 giờ 50 phút
- Pull request đã merge (30 ngày)
- 125
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của supabase/supabase-csharp
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
supabase/supabase-csharp#621 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OAuth State Error for social providers since Supabase.Gotrue v6.1.0Có thể làm lại được @Tr00d đã nhận 70 ngày trước và không có pull request nào đang mở. Đang mởbug
supabase/supabase-csharp#377 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
parity(functions): never send new-format API key as Authorization Bearer [from supabase-js]Có thể làm lại được @Tr00d đã nhận 108 ngày trước và không có pull request nào đang mở. Đang mởbug parity
supabase/supabase-csharp#279 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
parity(client): unrecognized sb_ API key subtypes are silently accepted, no warning [from supabase-js]Có thể làm lại được @Tr00d đã nhận 108 ngày trước và không có pull request nào đang mở. Đang mởparity
supabase/supabase-csharp#278 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
parity(realtime): add replication_ready broadcast option and system event payload [from supabase-js]Có thể làm lại được @Tr00d đã nhận 122 ngày trước và không có pull request nào đang mở. Đang mởparity
supabase/supabase-csharp#272 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của supabase/supabase-csharp
Issue tương tự
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MustacheCase/zanadir#506 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
effort:S P3 refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightscout/nocturne#3243 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
dasher-project/Dasher-Windows#84 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
libnativeapi/nativeapi#21 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100