CLI Installation
Run the generator in console depending on your ORM:
Granite:
mochi g omniauth user graniteor
Jennifer:
mochi g omniauth user jenniferMigrate
Open up
mochi.crin initializersConfigure you auth providers app id and secret key
Add:
<a href="/omniauth/github">Sign in with Github</a>to a view.<a href="/omniauth/user/github">Register with Github</a>Note: Replace
githubin the href for any providers you configured.
Uncomment the commented line in pipes/authenticate.cr
Last updated
Was this helpful?