This Elm package allows you to sign-in with Google credentials in an Elm application.
The example uses the newer Google Identity Services library, opposed to Google Sign-In.
To use this in your own projects, you need:
html/js (see example/index.html for details).To run the code in example all you need is elm and optionally, elm-live.
Note that you will also need to update the Google Client ID in both example/src/Main.elm and example/index.html.
elm-live:cd example
elm-live src/Main.elm -- --output=elm.jselm-live:elm makecd example
elm make src/Main.elm --output=elm.jselm reactorIf you are testing this locally, when you create your OAuth 2.0 Client ID, you must add
http://localhost AND http://localhost:8000
(or what ever port you are using) to both:
Otherwise, it won't work.
Forked from: https://github.com/cedric-h/elm-google-sign-in