Commit 5d20258e authored by Jose Blaya's avatar Jose Blaya
Browse files

handle errors in the response of the token service

parent 22c31aaa
......@@ -186,6 +186,12 @@ class DefaultAccountProvider: AccountProvider, ConfigurationAccess, DatabaseAcce
self.webServices.token(credentials: user.credentials) { (token, error) in
if let _ = error {
callback?(nil, error)
if let token = token {
let preferences = Client.preferences.editable()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment