mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-27 05:05:51 +03:00
[GH-ISSUE #453] OAuthSwiftCredential can't be key-archived or -unarchived #296
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#296
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 @jrtibbetts on GitHub (Apr 16, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/453
Description:
I'm trying to encode the
OAuthSwiftCredentialthat I get when successfully authenticated so that I can store it inUserDefaults, then decode it to use for future sessions. (If this isn't the right way to avoid having to re-authenticate every time I run my app, please let me know!) I've tried usingJSONEncoderandNSKeyedArchiver; however, the former doesn't work because there hasn't been anOAuthSwiftrelease with theCodableversion of that file, nor can I use theNSKeyedArchiver, because it dies with the following error:Ideally, you would issue a new OAuthSwift version that includes the
Codablecredential, or figure out why theNSKeyedArchiverversion doesn't work.OAuth Provider (Twitter, Github, ..):
DIscogs.com is what I tested with, but I don't think that it matters.
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
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
@phimage commented on GitHub (Apr 16, 2018):
there is Decoder/Encoder implementation
I do not test it myself, someone else implement it
I do not know if there is unit test about it
@jrtibbetts commented on GitHub (Apr 21, 2018):
Yes, there is a Decoder/Encoder implementation, but it's not included in any released version of the code.
@phimage commented on GitHub (Apr 21, 2018):
I will make a release for Xcode 9.3, swift 4.1
@jrtibbetts commented on GitHub (May 5, 2018):
Have you been able to make a new release?
@phimage commented on GitHub (May 5, 2018):
umm it's seems not? https://github.com/OAuthSwift/OAuthSwift/releases
github "OAuthSwift/OAuthSwift" "HEAD"
@maxep commented on GitHub (Jun 12, 2018):
Hey!
masterbranch is working well with theCodableimplementation. I'm also waiting for a release on CocoaPods. Thanks!