Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Add TTL and User to login response #186

Merged
merged 4 commits into from
Apr 5, 2022
Merged

Conversation

tvhimme
Copy link
Contributor

@tvhimme tvhimme commented Apr 4, 2022

the goal is to add refresh token TTL to all responses with new tokens and to add user object to login response. Part of this functionality was already done by @MaartenS11, but my previous PR merge broke this.

@tvhimme tvhimme marked this pull request as ready for review April 4, 2022 22:23
@tvhimme tvhimme changed the title fix: undo bad merge Add TTL and User to login response Apr 4, 2022
Copy link
Contributor

@MaartenS11 MaartenS11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found it a bit weird that there were 2 classes with inheritance at first but after reading the code I found that it did make some sense to do it that way to reduce coupling between Users and the more generic TokenUtil class. It's actually a reasonably nice besides the maybe slightly higher coupling created by directly referencing EntityViews.Public in addDataToHttpResponse but I doubt we will be changing that much so it's probably fine.

@MaartenS11 MaartenS11 merged commit 5ea23dd into development Apr 5, 2022
@MaartenS11 MaartenS11 deleted the fix-bad-merge-login branch April 5, 2022 14:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants