Skip to content

Commit aaf9032

Browse files
committed
Bugfix in manual authentication
1 parent de45426 commit aaf9032

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog Cobalt
22

3+
## v5.9.3 (19-06-2019)
4+
- Bugfix manual auth provider
5+
36
## v5.9.2 (19-06-2019)
47
- Bugfix manual auth provider
58

Cobalt.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Cobalt"
3-
s.version = "5.9.2"
3+
s.version = "5.9.3"
44
s.author = { "Bas van Kuijck" => "[email protected]" }
55
s.license = { :type => "MIT", :file => "LICENSE" }
66
s.homepage = "http://www.e-sites.nl"

Sources/Core/Base/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ open class Client: ReactiveCompatible {
234234
accessToken: String,
235235
refreshToken: String,
236236
expireDate: Date) {
237-
guard let host = (host ?? config.host) else {
238-
fatalError("No host given, nor a valid host set in the Cobalt.Config")
237+
guard let host = config.host else {
238+
fatalError("No valid host set in the config")
239239
}
240240

241241
authProvider.handleManualOAuthRequest(grantType: grantType, accessToken: accessToken, refreshToken: refreshToken, expireDate: expireDate, host: host)

0 commit comments

Comments
 (0)