Skip to content

Commit 999a345

Browse files
heibergmluisbrown
authored andcommitted
Fix TicTacToe auth error localization (#234)
1 parent 31734a5 commit 999a345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/TicTacToe/Sources/Core/AuthenticationClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ public struct AuthenticationResponse: Equatable {
4040
}
4141
}
4242

43-
public enum AuthenticationError: Equatable, Error {
43+
public enum AuthenticationError: Equatable, LocalizedError {
4444
case invalidUserPassword
4545
case invalidTwoFactor
4646
case invalidIntermediateToken
4747

48-
var localizedDescription: String {
48+
public var errorDescription: String? {
4949
switch self {
5050
case .invalidUserPassword:
5151
return "Unknown user or invalid password."

0 commit comments

Comments
 (0)