[GH-ISSUE #320] Unable to infer closure type in the current context #196

Closed
opened 2026-03-03 16:46:35 +03:00 by kerem · 2 comments
Owner

Originally created by @Aximem on GitHub (Dec 8, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/320

Description:

Sorry for previous issue, I'm trying to set Auth2 for Facebook but I always get

unable to infer closure type in the current context

I have OAuthSwift at "1.1.1". If I do :
success: { response in
I don't have the error. I'm a beginner, sorry if it is a dumb question.

capture d ecran 2016-12-08 a 20 40 43

OAuth Provider (Twitter, Github, ..): Facebook

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS : 10.1
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

  • head
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • 8.0 (Swift 3.0)

  • 8.0 (Swift 2.3)

  • 7.3.1

  • other: (Please fill in the version you are using.)

  • objective c

Originally created by @Aximem on GitHub (Dec 8, 2016). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/320 ### Description: Sorry for previous issue, I'm trying to set Auth2 for Facebook but I always get > unable to infer closure type in the current context I have OAuthSwift at "1.1.1". If I do : `success: { response in` I don't have the error. I'm a beginner, sorry if it is a dumb question. <img width="834" alt="capture d ecran 2016-12-08 a 20 40 43" src="https://cloud.githubusercontent.com/assets/18660012/21031569/72068e18-bda4-11e6-8c1a-89be1a31d215.png"> ### OAuth Provider (Twitter, Github, ..): Facebook ### OAuth Version: - [ ] Version 1 - [x] Version 2 ### OS (Please fill the version) : - [x] iOS : 10.1 - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [x] Carthage - [ ] CocoaPods - [ ] Manually ### Library version: - [x] head - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x] 8.0 (Swift 3.0) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem 2026-03-03 16:46:35 +03:00
Author
Owner

@phimage commented on GitHub (Dec 9, 2016):

in last/head version oauth_version is oauthToken

<!-- gh-comment-id:265952119 --> @phimage commented on GitHub (Dec 9, 2016): in last/head version `oauth_version` is `oauthToken`
Author
Owner

@Aximem commented on GitHub (Dec 9, 2016):

Thanks @phimage ;)

Btw this is oauth_token => oauthToken exactly.

<!-- gh-comment-id:265958200 --> @Aximem commented on GitHub (Dec 9, 2016): Thanks @phimage ;) Btw this is oauth_token => oauthToken exactly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#196
No description provided.