[GH-ISSUE #487] oauthswift.client.get using token #321

Closed
opened 2026-03-03 16:47:40 +03:00 by kerem · 2 comments
Owner

Originally created by @HarryF514 on GitHub (Sep 1, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/487

Description:

how do we make request with token?

Users authorize the app and the app got the token. Next time users open the app again, we want to use the token to make new request without brining users to authorization page.

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

fitbit2

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

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

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

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

Xcode version:

  • 9.3 (Swift 4.1)

  • 9.0 (Swift 4.0)

  • 9.0 (Swift 3.2)

  • 8.x (Swift 3.x)

  • 8.0 (Swift 2.3)

  • 7.3.1

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

  • objective c

Originally created by @HarryF514 on GitHub (Sep 1, 2018). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/487 ### Description: how do we make request with token? Users authorize the app and the app got the token. Next time users open the app again, we want to use the token to make new request without brining users to authorization page. ### OAuth Provider? (Twitter, Github, ..): fitbit2 ### OAuth Version: - [ ] Version 1 - [x] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [x] CocoaPods - [ ] Manually ### Library version: - [ ] head - [x] v1.2.1 - [ ] v1.2 (Swift 4.0) - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x] 9.3 (Swift 4.1) - [ ] 9.0 (Swift 4.0) - [ ] 9.0 (Swift 3.2) - [ ] 8.x (Swift 3.x) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem closed this issue 2026-03-03 16:47:40 +03:00
Author
Owner

@phimage commented on GitHub (Sep 1, 2018):

For that you must store the credential
then restore it when starting

https://github.com/OAuthSwift/OAuthSwift/wiki/Store-credential

<!-- gh-comment-id:417839872 --> @phimage commented on GitHub (Sep 1, 2018): For that you must store the credential then restore it when starting https://github.com/OAuthSwift/OAuthSwift/wiki/Store-credential
Author
Owner

@HarryF514 commented on GitHub (Sep 10, 2018):

Thanks,

It works.

<!-- gh-comment-id:420017608 --> @HarryF514 commented on GitHub (Sep 10, 2018): Thanks, It works.
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#321
No description provided.