Actually fix Microsoft login

This commit is contained in:
Adam Tunnic committed 2021-04-28 16:33:47 -04:00
1 parent 29a232e1ef
commit 405beeb6fe
1 file changed
+4 -3
+4 -3
View File
@@ -40,12 +40,13 @@ void loginAccountInput(UINavigationController *controller, int type, const char*
}
#pragma mark - LoginViewController
@interface AppDelegate () <ASWebAuthenticationPresentationContextProviding>{
@interface LoginViewController () <ASWebAuthenticationPresentationContextProviding>{
}
@property (nonatomic, strong) ASWebAuthenticationSession *authVC;
@end
@implementation LoginViewController
@synthesize authVC;
- (void)viewDidLoad {
[super viewDidLoad];
@@ -183,7 +184,7 @@ void loginAccountInput(UINavigationController *controller, int type, const char*
- (void)loginMicrosoft {
NSURL *url = [NSURL URLWithString:@"https://login.live.com/oauth20_authorize.srf?client_id=00000000402b5328&response_type=code&scope=service%3A%3Auser.auth.xboxlive.com%3A%3AMBI_SSL&redirect_url=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf"];
ASWebAuthenticationSession *authVC =
authVC =
[[ASWebAuthenticationSession alloc] initWithURL:url
callbackURLScheme:@"ms-xal-00000000402b5328"
completionHandler:^(NSURL * _Nullable callbackURL,