This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.1.0
README OpenIDConnect

OpenIDConnect.Decode

Provide decoders for the most common JWT attributes

expDecoder : Json.Decoder Int

Decode the 'exp' attribute

subDecoder : Json.Decoder String

Decode the 'sub' attribute

module OpenIDConnect.Decode exposing (..)

{-| Provide decoders for the most common JWT attributes

@docs expDecoder, subDecoder

-}

import Json.Decode as Json


{-| Decode the 'exp' attribute
-}
expDecoder : Json.Decoder Int
expDecoder =
    Json.field "exp" Json.int


{-| Decode the 'sub' attribute
-}
subDecoder : Json.Decoder String
subDecoder =
    Json.field "sub" Json.string