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

supabase / supabase-swift / 28930530953

08 Jul 2026 08:59AM UTC coverage: 83.384% (+0.4%) from 82.988%
28930530953

Pull #1043

github

web-flow
Merge 25e45192f into 4187766e2
Pull Request #1043: chore: add SwiftLint 0.65.0 with pinned CI version

3 of 3 new or added lines in 2 files covered. (100.0%)

247 existing lines in 9 files now uncovered.

7879 of 9449 relevant lines covered (83.38%)

37.58 hits per line

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

50.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
16
  ) -> Bool {
1✔
17
    let message = "\(jwt.raw.header).\(jwt.raw.payload)".data(using: .utf8)!
1✔
18
    switch self {
1✔
19
    case .rs256:
1✔
20
      #if canImport(Security)
21
        guard let publicKey = jwk.rsaPublishKey else { return false }
1✔
22
        return SecKeyVerifySignature(
×
23
          publicKey,
×
24
          .rsaSignatureMessagePKCS1v15SHA256,
×
25
          message as CFData,
×
26
          jwt.signature as CFData,
×
27
          nil
×
UNCOV
28
        )
×
29
      #else
30
        return false
31
      #endif
32
    }
1✔
33
  }
1✔
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc