Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func authorize(response: @escaping Handler<Result<Void, Error>>) {
- type(of: self).authorize(
- withPermissions: ["VALUABLE_ACCESS", "LONG_ACCESS_TOKEN"],
- success: {response(Result.success(()))},
- error: {
- guard let error = $0 as NSError? else { return }
- response(.failure(error))
- }
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement