alexbruf/elm-clerk/2.0.0

Clerk.EmailAddress

The Clerk email address resource, one entry of Clerk.User's emailAddresses.

type alias EmailAddress =
{ id : String
, emailAddress : String
, verification : Verification
, matchesSsoConnection : Bool
, linkedTo : List IdentificationLink
}

One of a user's email addresses.

linkedTo is empty unless the address arrived through another identification, such as an OAuth account.

decoder : Decoder EmailAddress

Decode an EmailAddress from the JSON the shim sends.

{ "id": "idn_1"
, "emailAddress": "[email protected]"
, "verification": Verification
, "matchesSsoConnection": false
, "linkedTo": [ IdentificationLink ]
}

linkedTo is [] when ClerkJS has no links.