mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Add a state machine to the AuthenticationFlowCoordinator. (#4103)
This commit is contained in:
@@ -66,7 +66,7 @@ enum OIDCError: Error {
|
||||
case unknown
|
||||
}
|
||||
|
||||
struct OIDCAuthorizationDataProxy: Equatable {
|
||||
struct OIDCAuthorizationDataProxy: Hashable {
|
||||
let underlyingData: OAuthAuthorizationData
|
||||
|
||||
var url: URL {
|
||||
@@ -77,8 +77,12 @@ struct OIDCAuthorizationDataProxy: Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
extension OAuthAuthorizationData: @retroactive Equatable {
|
||||
extension OAuthAuthorizationData: @retroactive Hashable {
|
||||
public static func == (lhs: MatrixRustSDK.OAuthAuthorizationData, rhs: MatrixRustSDK.OAuthAuthorizationData) -> Bool {
|
||||
lhs.loginUrl() == rhs.loginUrl()
|
||||
}
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(loginUrl())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user