Configure the GitHub App
Create a GitHub App under GitHub Settings → Developer settings → GitHub Apps.
- Enable Device Flow.
- Grant repository Contents and Administration read/write permissions.
- Keep expiring user authorization tokens enabled.
- Configure the installation to cover all repositories so newly created groups are immediately accessible.
- Copy the app’s client ID and slug into
.env.
Do not copy or expose the client secret. GitHub App device-flow refresh does not require shipping it in the Android application.
Installation and authorization are separate GitHub actions. A group creator installs and authorizes the app; an invited collaborator authorizes it after accepting the repository invitation.