Skip to content

Commit

Permalink
DTPOMERSER-1001 Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
grmeyer-hw-dev committed Jul 7, 2024
1 parent 13bf629 commit 3a15a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class AuthenticationTokenProvider: HyperwalletAuthenticationTokenProvider
let task = defaultSession.dataTask(with: request) {(data, response, error) in
DispatchQueue.main.async {
guard let data = data,
let clientToken = String(data: data, as: UTF8.self),
let clientToken = String(decoding: data, as: UTF8.self),
let response = response as? HTTPURLResponse else {
completionHandler(nil, HyperwalletAuthenticationErrorType.unexpected(error?.localizedDescription ??
"authentication token cannot be retrieved"))
Expand Down

0 comments on commit 3a15a68

Please sign in to comment.