A Flutter github client project.
provider: state managementdio: HTTP networkingflutter_secure_storage: secure local storage for sensitive dataflutter_web_auth_2: GitHub OAuth login flowflutter_dotenv: loads environment variables from.envjson_annotation/json_serializable/build_runner: JSON serialization code generationflutter_localizations: localization support
The app loads the root .env file on startup. Related code is in lib/main.dart and lib/config/github_auth_config.dart.
Use the following format:
GITHUB_CLIENT_ID=your_client_id
GITHUB_CLIENT_SECRET=your_client_secret
GITHUB_CALLBACK_SCHEME=jinchaohub
GITHUB_CALLBACK_HOST=oauth-callbackVariables:
GITHUB_CLIENT_ID: GitHub OAuth App Client IDGITHUB_CLIENT_SECRET: GitHub OAuth App Client SecretGITHUB_CALLBACK_SCHEME: OAuth callback schemeGITHUB_CALLBACK_HOST: OAuth callback host
The redirect URI format used by this project is:
{GITHUB_CALLBACK_SCHEME}://{GITHUB_CALLBACK_HOST}
Example:
jinchaohub://oauth-callback