Skip to content

Commit a6d23f8

Browse files
authored
1.5.0 (#23)
1 parent d2d4bf0 commit a6d23f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

OAuthSample.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@
581581
repositoryURL = "https://github.com/codefiesta/OAuthKit.git";
582582
requirement = {
583583
kind = upToNextMajorVersion;
584-
minimumVersion = 1.4.8;
584+
minimumVersion = 1.5.0;
585585
};
586586
};
587587
/* End XCRemoteSwiftPackageReference section */

OAuthSample/Classes/ContentView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ struct ContentView: View {
5353
.padding()
5454
.border(Color.primary)
5555
.font(.title)
56+
case .error(let provider, let error):
57+
Text("Error [\(provider.id)]: \(error.localizedDescription)")
5658
}
5759
}
5860
.onChange(of: oauth.state) { _, state in
@@ -87,7 +89,7 @@ struct ContentView: View {
8789
/// - Parameter state: the published state change
8890
private func handle(state: OAuth.State) {
8991
switch state {
90-
case .empty, .requestingAccessToken, .requestingDeviceCode:
92+
case .empty, .error, .requestingAccessToken, .requestingDeviceCode:
9193
break
9294
case .authorizing(_, let grantType):
9395
switch grantType {

0 commit comments

Comments
 (0)