Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit bc88168

Browse files
committed
Fix JWT grants and version bump
1 parent 6e305b0 commit bc88168

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BeamAPI.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Pod::Spec.new do |s|
22
s.name = "BeamAPI"
3-
s.version = "1.3.4"
3+
s.version = "1.4"
44
s.summary = "An interface to communicate with Beam's backend."
55
s.homepage = "https://github.com/WatchBeam/beam-client-swift"
66
s.license = "MIT"
77
s.author = { "Jack Cook" => "[email protected]" }
88

99
s.requires_arc = true
1010
s.ios.deployment_target = "8.2"
11-
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.3.4" }
11+
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.4" }
1212
s.source_files = "Pod/Classes/**/*"
1313

1414
s.dependency "Starscream", "~> 2.0"

Pod/Classes/Routes/JWTRoutes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class JWTRoutes {
1717
:param: completion An optional completion block with retrieved JWT data.
1818
*/
1919
public func generateJWTGrant(_ completion: ((_ error: BeamRequestError?) -> Void)?) {
20-
BeamRequest.request("/jwt/authorize", requestType: "POST", options: .storeJWT) { (json, error) in
20+
BeamRequest.request("/jwt/authorize", requestType: "POST", options: [.cookieAuth, .storeJWT]) { (json, error) in
2121
completion?(error)
2222
}
2323
}

0 commit comments

Comments
 (0)