alexbruf/elm-clerk/1.0.0

NOTE: the latest version is 2.0.0

Clerk.Organization

The Clerk organization resource, reduced to the fields listed in coverage.json.

An organization is only present when one is active; see Clerk.setActiveOrganization.

type alias Organization =
{ id : String
, name : String
, slug : Maybe String
, imageUrl : String
}

The active Clerk organization.

decoder : Decoder Organization

Decode an Organization from the JSON the shim sends.

{ "id": "org_1"
, "name": "Acme"
, "slug": "acme"
, "imageUrl": "https://img.clerk.com/acme"
}

slug accepts null.