• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-swift / 18310299174

07 Oct 2025 10:51AM UTC coverage: 77.518% (-0.5%) from 78.043%
18310299174

Pull #812

github

web-flow
Merge 11c6c859f into a2320ec64
Pull Request #812: feat(auth): introduce getClaims method to verify and extract JWT claims

193 of 308 new or added lines in 7 files covered. (62.66%)

5872 of 7575 relevant lines covered (77.52%)

24.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Sources/Auth/Internal/JWTAlgorithm.swift
1
//
2
//  JWTVerifier.swift
3
//  Supabase
4
//
5
//  Created by Claude on 06/10/25.
6
//
7

8
import Foundation
9

10
enum JWTAlgorithm: String {
11
  case rs256 = "RS256"
12

13
  func verify(
14
    jwt: DecodedJWT,
15
    jwk: JWK
NEW
16
  ) -> Bool {
×
NEW
17
    let message = "\(jwt.raw.header).\(jwt.raw.payload)".data(using: .utf8)!
×
NEW
18
    switch self {
×
NEW
19
    case .rs256:
×
NEW
20
      return SecKeyVerifySignature(
×
NEW
21
        jwk.rsaPublishKey!,
×
NEW
22
        .rsaSignatureMessagePKCS1v15SHA256,
×
NEW
23
        message as CFData,
×
NEW
24
        jwt.signature as CFData,
×
NEW
25
        nil
×
NEW
26
      )
×
NEW
27
    }
×
NEW
28
  }
×
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc