Skip to content

Instantly share code, notes, and snippets.

View dato's full-sized avatar
💚
Trans rights are human rights

Adeodato Simó dato

💚
Trans rights are human rights
View GitHub Profile
@scjudd
scjudd / Auth.elm
Last active December 1, 2019 16:36
Authentication in Elm
module Auth exposing (User(..), UserInfo, LoginInfo, loginTask)
import HttpBuilder exposing (..)
import Json.Encode as Encode
import Json.Decode as Decode exposing ((:=))
import Task exposing (Task)
type User
= Authenticated UserInfo