Skip to content
Merged
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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OAuthKit can be installed using [Swift Package Manager](https://www.swift.org/do

```swift
dependencies: [
.package(url: "https://github.com/codefiesta/OAuthKit", from: "1.4.6")
.package(url: "https://github.com/codefiesta/OAuthKit", from: "1.5.0")
]
```

Expand Down Expand Up @@ -111,6 +111,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 @@ -147,7 +149,7 @@ struct ContentView: View {
private func handle(state: OAuth.State) {
#if canImport(WebKit)
switch state {
case .empty, .requestingAccessToken, .requestingDeviceCode:
case .empty, .error, .requestingAccessToken, .requestingDeviceCode:
break
case .authorizing, .receivedDeviceCode:
openWindow(id: "oauth")
Expand Down