- Added possibility to use the SDK with the server-side flow. The SDK automatically handles the state token retrieval and authentication endpoints, simplifying the whole front-end process:
All you have to do is to show the popup, specifying the state and auth URLs
[oauthioModal showWithProvider:@"facebook" options:options stateTokenUrl:@"http://your/state/url" authUrl:@"http://your/auth/url"];
And catch the response of the authentication with one of the following delegate methods:
- (void)didAuthenticateServerSide:(NSString *)body andResponse:(NSURLResponse *) response;
- (void)didFailAuthenticationServerSide:(NSString *)body andResponse:(NSURLResponse *)response andError:(NSError *)error;