Permalink
Browse files

Adding missing verifier property to AFOAuth1Token NSCoding & NSCopying

  • Loading branch information...
1 parent 1880c44 commit 980965c0626c3d9277a7f525402b4968b187d7bc @mattt mattt committed May 7, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 AFOAuth1Client/AFOAuth1Client.m
@@ -473,6 +473,7 @@ - (id)initWithCoder:(NSCoder *)decoder {
self.key = [decoder decodeObjectForKey:@"key"];
self.secret = [decoder decodeObjectForKey:@"secret"];
self.session = [decoder decodeObjectForKey:@"session"];
+ self.verifier = [decoder decodeObjectForKey:@"verifier"];
self.expiration = [decoder decodeObjectForKey:@"expiration"];
self.renewable = [decoder decodeBoolForKey:@"renewable"];
@@ -483,6 +484,7 @@ - (void)encodeWithCoder:(NSCoder *)coder {
[coder encodeObject:self.key forKey:@"key"];
[coder encodeObject:self.secret forKey:@"secret"];
[coder encodeObject:self.session forKey:@"session"];
+ [coder encodeObject:self.verifier forKey:@"verifier"];
[coder encodeObject:self.expiration forKey:@"expiration"];
[coder encodeBool:self.renewable forKey:@"renewable"];
}
@@ -494,6 +496,7 @@ - (id)copyWithZone:(NSZone *)zone {
copy.key = self.key;
copy.secret = self.secret;
copy.session = self.session;
+ copy.verifier = self.verifier;
copy.expiration = self.expiration;
copy.renewable = self.renewable;

0 comments on commit 980965c

Please sign in to comment.