Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Response #6

Open
joneshf opened this issue Jul 17, 2018 · 0 comments
Open

Separate Response #6

joneshf opened this issue Jul 17, 2018 · 0 comments

Comments

@joneshf
Copy link
Contributor

joneshf commented Jul 17, 2018

-- | The response to a request for a new token.
--
-- <https://tools.ietf.org/html/rfc6749#section-4.1.4>
data Response = Response
-- TODO: the access token, its type, and its expiration date should really be together in a single type.
-- The optionally returned refresh token is something else.
{ responseAccessToken :: AccessToken
, responseTokenType :: TokenType
, responseExpiresIn :: Maybe ExpirationTime
, responseRefreshToken :: Maybe RefreshToken
, responseIdToken :: Jose.Jwt.Jwt
} deriving (Eq, Show)

We should be careful that the serialization doesn't change.

joneshf added a commit that referenced this issue Jul 17, 2018
Codified as issue #6: #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant