mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #478] How to save authorization? #314
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#314
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 @JetForMe on GitHub (Jul 10, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/478
Description:
I'm trying to save the returned
OAuthSwiftCredential, and I'm able to do that, so that on subsequent executions my app doesn't force the user to re-auth, but I can't see any way to re-create theOAuth1Swiftobject with that stored credential.OAuth Provider? (Twitter, Github, ..):
Twitter
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
1.2.2
Xcode version:
9.4.1, Swift
@phimage commented on GitHub (Jul 10, 2018):
credential is not settable (I think I must change that but I must check some pointts)
but you can edit the fields of the credential in oauthswift object
https://github.com/OAuthSwift/OAuthSwift/wiki/Store-credential#inject-loaded-token
@JetForMe commented on GitHub (Jul 10, 2018):
That seems to work, thank you. I think it would be good if I could just assign a Credential to an OAuth object. Thanks!