Skip to content

Instantly share code, notes, and snippets.


nparsons08/Account.swift Secret

Created May 4, 2020
What would you like to do?
// ios/TheStream/Account.swift:130
private func setupChat() {
method: .post,
headers: ["Authorization" : "Bearer \(authToken!)"])
.responseJSON { [weak self] response in
let body = response.value as! NSDictionary
let chatToken = body["token"]! as! String
let apiKey = body["apiKey"] as! String
if let user = self?.user {
StreamChatClient.Client.config = .init(apiKey: apiKey, logOptions: .info)
user: StreamChatClient.User(id: user),
token: chatToken
self?.isAuthed = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.