mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #610] renewToken : URL is not valid #397
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#397
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fukemy on GitHub (Jul 22, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/610
Description:
OAuth Provider? (Twitter, Github, ..): My custom Auth
OAuth Version:
Version 2
OS (Please fill the version) :
iOS :
Installation method:
CocoaPods
Library version:
v2.1.0
Xcode version:
other: (11.5 -> but this issue came about in 11.4 already)
Hi, i did get access token normally using
but when i tried to renew access token, i got error :
Task <D7D3B09E-EC3C-46EB-9637-2E86378A5D19>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "URL không được hỗ trợ" UserInfo={NSUnderlyingError=0x283083de0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, NSErrorFailingURLStringKey=vedaxLink://#error=login_required&session_state=mwEqxXcZzUZVFm8J3DsdphWObj1felFDUlJQV-bTh0Y.OauRApvQDgUU6HXwfP0-kw, NSErrorFailingURLKey=vedaxLink://#error=login_required&session_state=mwEqxXcZzUZVFm8J3DsdphWObj1felFDUlJQV-bTh0Y.OauRApvQDgUU6HXwfP0-kw, NSLocalizedDescription=URL không được hỗ trợ}Here is my renew code:
plz help
@fukemy commented on GitHub (Jul 22, 2020):
here is my config:
@jlynch1 commented on GitHub (Jul 27, 2020):
To workaround this issue I subclassed
OAuth2Swiftand overriderenewAccessToken()method to setclient.credential.oauthToken = "".It is the same as OAuthSwift/OAuthSwiftAlamofire#11