Last active
October 12, 2020 23:00
-
-
Save ptruiz/a3d0ad0b289ec58aa927e99f9de51349 to your computer and use it in GitHub Desktop.
This file contains 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 characters
void signInWithGitHub() async { | |
const String url = "https://github.com/login/oauth/authorize?client_id=" + CLIENT_ID | |
+ "&scope=user:email"; | |
if (await canLaunch(url)) { | |
await launch(url); | |
} else { | |
throw "Could not launch $url"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment