Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
5d20258e
Commit
5d20258e
authored
Feb 04, 2019
by
Jose Blaya
Browse files
handle errors in the response of the token service
parent
22c31aaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/Library/Account/DefaultAccountProvider.swift
View file @
5d20258e
...
...
@@ -186,6 +186,12 @@ class DefaultAccountProvider: AccountProvider, ConfigurationAccess, DatabaseAcce
}
self
.
webServices
.
token
(
credentials
:
user
.
credentials
)
{
(
token
,
error
)
in
if
let
_
=
error
{
callback
?(
nil
,
error
)
return
}
if
let
token
=
token
{
let
preferences
=
Client
.
preferences
.
editable
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment