Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbeal committed Oct 19, 2014
1 parent 4efb8b7 commit 08df032
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/CBTransaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef void (^RequestActionHandler)(BOOL success, NSError *error);
@property NSString *email;
@property NSString *amount;
@property NSString *timestamp;
@property NSString *hash;
@property NSString *hsh;
@property NSString *transactionId;
@property BOOL sender;
@property BOOL request;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Coinbase.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ + (void)getAccessToken:(NSString*)permissions {
}

+ (void)getAuthCode:(NSString *)scope {
[[NSNotificationCenter defaultCenter] postNotificationName:CB_AUTHCODE_NOTIFICATION_TYPE object:nil userInfo:@{CB_AUTHCODE_URL_KEY:[NSURL URLWithString:[NSString stringWithFormat:@"https://coinbase.com/oauth/authorize?response_type=code&client_id=%@&redirect_uri=%@&scope=%@", [Coinbase getClientId], [Coinbase getCallbackUrl], scope]]}];
[[NSNotificationCenter defaultCenter] postNotificationName:CB_AUTH_CODE_NOTIFICATION_TYPE object:nil userInfo:@{CB_AUTH_CODE_URL_KEY:[NSURL URLWithString:[NSString stringWithFormat:@"https://coinbase.com/oauth/authorize?response_type=code&client_id=%@&redirect_uri=%@&scope=%@", [Coinbase getClientId], [Coinbase getCallbackUrl], scope]]}];
}

+ (NSString *)apiToken {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ - (void)webViewDidFinishLoad:(UIWebView *)webView{
NSString *theTitle=[webView stringByEvaluatingJavaScriptFromString:@"document.title"];
if (![theTitle isEqualToString:@"Coinbase"]) {
[Coinbase registerAuthCode:theTitle];
[self dismissViewControllerAnimated:NO completion:nil];
}
NSLog(@"%@", theTitle);
}
Expand Down

0 comments on commit 08df032

Please sign in to comment.