Jwt module is a collection of helpers used to derive sessions from JWTs.
{ iss : String
, exp : Basics.Int
}
Basic Jwt Claims. In the future this should be configurable.
checkToken : String -> (Result ElmData.Session.SessionFailure ElmData.Session.SessionData -> msg) -> Platform.Cmd.Cmd msg
Checks a token for Expiry. Returns expiry or any errors that occurred in decoding.