cedric-h/elm-google-sign-in/1.0.0

NOTE: the latest version is 2.0.0

GoogleSignIn

Elm bindings to the "Sign in With Google" widget

See the github for more information: https://github.com/cedric-h/elm-google-sign-in

View

view : List (Attribute msg) -> Html msg

Yields a Google sign in button intended for use with elm/html

styledView : List (Attribute msg) -> Html msg

Yields a Google sign in button intended for use with rtfeldman/elm-css

Attribute Wrapper

type Attribute msg

Like a normal HTML Attribute, but these can only apply to Google Sign in Buttons

Properties

Supply the ClientId for the application this button should sign in to.

Listeners

onSignIn : (Profile -> msg) -> Attribute msg

Respond to when the user completes signing in through Google.

Supporting Types

type alias Profile =
{ id : String
, idToken : String
, name : String
, givenName : String
, familyName : String
, imageUrl : String
, email : Maybe String
}

All of the important information Google stores about a user. The idToken is what should be sent back to your server for authentication purposes. The email field is only present if your clientId has the right scopes.

What Google uses to keep track of your application