-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift snippet using the authCallback. #470
Conversation
clientOptions.authCallback = { params, callback in | ||
let tokenParams = ARTTokenParams(clientId: json["clientId"] /*string*/) | ||
|
||
let tokenRequest = ARTTokenRequest(tokenParams: tokenParams), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect closing param there.
@tcard thanks for feedback, I will improve. |
Please find time to review @tcard |
LGTM |
|
||
```objective-c | ||
ARTClientOptions *clientOptions = [[ARTClientOptions alloc] init]; | ||
clientOptions.authCallback = ^(ARTTokenParams *params, void(^callBack)(id<ARTTokenDetailsCompatible>, NSError*)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From this line on there's one extra level of indentation.
A few stylistic comments but LGTM otherwise. |
Ok, thanks @tcard , please review with stylistic improvements. |
LGTM |
Ok, as far as I understand - I can merge PR after successful review, right @tcard ? |
That's right @EvgenyKarkan. |
#461
For preliminary review, if everything is OK I'll provide an
ObjectiveC
snippet.