-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOtp+Debug.swift
35 lines (32 loc) · 862 Bytes
/
Otp+Debug.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import Foundation
#if DEBUG
public extension Otp {
static var testTotp30sec: Otp = .init(
id: UUID(),
issuer: "Example Issuer",
accountName: "Account Name",
domainName: "example.com",
algorithm: .SHA1,
digits: 6,
secret: "JBSWY3DPEHPK3PXP",
period: 30)
static var testTotp15sec: Otp = .init(
id: UUID(),
issuer: "Google",
accountName: "My Email",
domainName: "google.com",
algorithm: .SHA1,
digits: 6,
secret: "JBSWY3DPEHPK3PXP",
period: 15)
static var testTotp60sec: Otp = .init(
id: UUID(),
issuer: "GitHub",
accountName: "GitHub Account",
domainName: "github.com",
algorithm: .SHA1,
digits: 8,
secret: "JBSWY3DPEHPK3PXP",
period: 60)
}
#endif