-
-
Save csemrm/1556af22d1c0cd3210e22362b51ff3a3 to your computer and use it in GitHub Desktop.
Revisions
-
hansemannn revised this gist
Oct 21, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ const SFAuthenticationSession = require('SafariServices/SFAuthenticationSession'); const NSURL = require('Foundation/NSURL'); const session = SFAuthenticationSession.alloc().initWithURLCallbackURLSchemeCompletionHandler( NSURL.alloc().initWithString('https://github.com/login/oauth/authorize?scope=repo&client_id=XXXXX'), 'appcgithub://', function(url, error) { -
hansemannn revised this gist
Oct 21, 2017 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,16 +2,16 @@ var SFAuthenticationSession = require('SafariServices/SFAuthenticationSession'); var NSURL = require('Foundation/NSURL'); var session = SFAuthenticationSession.alloc().initWithURLCallbackURLSchemeCompletionHandler( NSURL.alloc().initWithString('https://github.com/login/oauth/authorize?scope=repo&client_id=XXXXX'), 'appcgithub://', function(url, error) { if (error != null) { Ti.API.error('Error performing OAuth: ' + error.localizedDescription); cb({ success: false, error: 'Error performing OAuth: ' + error.localizedDescription }); return; } cb({ success: true, url: url.absoluteString }); }); function cb(e) { -
hansemannn created this gist
Oct 21, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ var SFAuthenticationSession = require('SafariServices/SFAuthenticationSession'); var NSURL = require('Foundation/NSURL'); var session = SFAuthenticationSession.alloc().initWithURLCallbackURLSchemeCompletionHandler( NSURL.alloc().initWithString('https://github.com/login/oauth/authorize?scope=repo&client_id=XXXXX'), 'appcgithub://', function(url, error) { if (error != null) { Ti.API.error('Error performing OAuth: ' + error.localizedDescription); cb({ success: false, error: 'Error performing OAuth: ' + error.localizedDescription }); return; } cb({ success: true, url: url.absoluteString }); }); function cb(e) { Ti.API.info(e); }