We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e39900 commit 6c676e0Copy full SHA for 6c676e0
lib/src/client/oauth2.dart
@@ -2,6 +2,18 @@ part of github.client;
2
3
/**
4
* OAuth2 Flow Helper
5
+ *
6
+ * **Example**:
7
8
+ * var flow = new OAuth2Flow("ClientID", "ClientSecret");
9
+ * var authUrl = flow.createAuthorizationURL();
10
+ * // Display to the User and handle the redirect URI, and also get the code.
11
+ * flow.exchange(code).then((response) {
12
+ * var github = new GitHub(auth: new Authentication.withToken(response.token));
13
+ * // Use the GitHub Client
14
+ * });
15
16
17
*/
18
class OAuth2Flow {
19
0 commit comments