Skip to content

Commit 4b9147b

Browse files
authored
fix: user info types (#122)
1 parent cfcbc21 commit 4b9147b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Sources/Logto/Core/LogtoCore+Fetch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ public extension LogtoCore {
120120
public let picture: String?
121121
public let username: String?
122122
public let email: String?
123-
public let emailVerified: String?
123+
public let emailVerified: Bool?
124124
public let phoneNumber: String?
125-
public let phoneNumberVerified: String?
125+
public let phoneNumberVerified: Bool?
126126
public let customData: JsonObject?
127127
public let identities: JsonObject?
128128
}

Sources/Logto/Protocols/UserInfoProtocol.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public protocol UserInfoProtocol: Codable, Equatable {
1212
var picture: String? { get }
1313
var username: String? { get }
1414
var email: String? { get }
15-
var emailVerified: String? { get }
15+
var emailVerified: Bool? { get }
1616
var phoneNumber: String? { get }
17-
var phoneNumberVerified: String? { get }
17+
var phoneNumberVerified: Bool? { get }
1818
}

Sources/Logto/Types/IdTokenClaims.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public struct IdTokenClaims: UserInfoProtocol {
2020
public let picture: String?
2121
public let username: String?
2222
public let email: String?
23-
public let emailVerified: String?
23+
public let emailVerified: Bool?
2424
public let phoneNumber: String?
25-
public let phoneNumberVerified: String?
25+
public let phoneNumberVerified: Bool?
2626
}

0 commit comments

Comments
 (0)