store the type of the token with the token itself

updater needs it as well and we actually don't want to send
the wrong type to the server
This commit is contained in:
Stephan Diederich
2013-09-11 14:50:50 +02:00
parent d93da3ee32
commit ea5452603b
3 changed files with 84 additions and 27 deletions

View File

@@ -50,7 +50,13 @@
* This is retrieved from the hockeyApp backend
* @see installationIdentifier
*/
@property (nonatomic, copy) NSString *authenticationToken;
@property (nonatomic, readonly) NSString *authenticationToken;
/**
* store the authentication token with the given type
* if authToken is not nil, authentikationTokenType must also be non nil
*/
- (void)setAuthenticationToken:(NSString *)authenticationToken withType:(NSString*) authenticationTokenType;
/**
* holds the identifier of the last version that was authenticated
@@ -62,10 +68,8 @@
/**
* Specifies the type of installation identification for the current app installation
*
* KVO'able
*/
@property (nonatomic, readonly) BOOL installationIdentificationType;
@property (nonatomic, readonly) NSString *installationIdentificationType;
/**
* removes all previously stored authentication tokens, UDIDs, etc