This is an example application showing how one can integrate with the OAuth2 library and the Phoenix framework.
To start the application:
- Register a new application on GitHub
- Set
CLIENT_ID
andCLIENT_SECRET
environment variables - Install dependencies with
mix deps.get
- Start Phoenix router with
mix phoenix.start
Now you can visit lvh.me:4000
from your browser and click "Sign in with
GitHub".