Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OAuthSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@
repositoryURL = "https://github.com/codefiesta/OAuthKit.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.4.8;
minimumVersion = 1.5.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
4 changes: 3 additions & 1 deletion OAuthSample/Classes/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ struct ContentView: View {
.padding()
.border(Color.primary)
.font(.title)
case .error(let provider, let error):
Text("Error [\(provider.id)]: \(error.localizedDescription)")
}
}
.onChange(of: oauth.state) { _, state in
Expand Down Expand Up @@ -87,7 +89,7 @@ struct ContentView: View {
/// - Parameter state: the published state change
private func handle(state: OAuth.State) {
switch state {
case .empty, .requestingAccessToken, .requestingDeviceCode:
case .empty, .error, .requestingAccessToken, .requestingDeviceCode:
break
case .authorizing(_, let grantType):
switch grantType {
Expand Down