Github class
Github authentication helper class.
Constructors
- Github()
-
factory
Properties
- accessToken ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String
-
getter/setter pair
- params ↔ GithubParamsModel?
-
getter/setter pair
- response ↔ Response
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateString ↔ String
-
getter/setter pair
Methods
-
authenticate(
String code) → Future< GithubSignInResponse> -
getAccesToken(
String code) → Future< String?> - Get the access token from the code.
-
getEmail(
) → Future< String?> - Get the email from the access token. Github email scope is not required. If the user does not give permission to access the email, the email will not be returned.
-
getUserData(
) → Future< Map< String, dynamic> ?> - Get the user data from the access token.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- accesTokenUrl → const String
- emailUrl → const String
- signinUrl → const String
- userDataUrl → const String