We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c4747 commit e722946Copy full SHA for e722946
.DS_Store
0 Bytes
Sources/JWT.swift
@@ -19,10 +19,10 @@ public enum Algorithm: CustomStringConvertible {
19
case hs512(Data)
20
21
/// RSA using SHA-256 hash algorithm
22
- case rsa256(PrivateKey)
+ case rs256(PrivateKey)
23
24
// RSA using SHA-512 hash algorithm
25
- case rsa512(PrivateKey)
+ case rs512(PrivateKey)
26
27
public var description: String {
28
switch self {
@@ -34,9 +34,9 @@ public enum Algorithm: CustomStringConvertible {
34
return "HS384"
35
case .hs512:
36
return "HS512"
37
- case .rsa256:
38
- return "RSA256"
39
- case .rsa512:
+ case .rs256:
+ return "RS256"
+ case .rs512:
40
return "RS512"
41
}
42
0 commit comments