the-sett / elm-auth-aws / AWS.Tokens

Defines the decoded form that the AWS access and id tokens take.


type alias AccessToken =
{ sub : String
, event_id : String
, token_use : String
, scope : String
, auth_time : Time.Posix
, iss : String
, exp : Time.Posix
, iat : Time.Posix
, jti : String
, client_id : String
, username : String 
}

Cognito access token.


type alias IdToken =
{ sub : String
, aud : String
, event_id : String
, token_use : String
, auth_time : Time.Posix
, iss : String
, cognito_username : String
, exp : Time.Posix
, iat : Time.Posix
, email : String 
}

Cognito id token.