Replies: 1 comment 5 replies
-
There is no way around Generally, you shouldn't need to use I could see a case for making IDs associated types of That said, I'm not really clear on how |
Beta Was this translation helpful? Give feedback.
-
Been using both this and axum-login and in that crate I really like how
AuthUser
is handled, it makes me particularly aware of the fact thatRecord
is not handled the same way in tower-sessions and that I need to work around the struct.This is especially painful when it uses
time
when I usechrono
for my worker-rs project due to the fact that worker-rs uses chrono, which leaves me in the amazing position of having to convert between the two time formats.I'm not sure there's an easy way to solve that particular issue, since you guys have to choose something internally, so at the very least I'd have to convert to that (though with a bigger refactor even this could be worked around I think), but it would be nice to not have to convert the
id
anddata
fields at least. Are there any plans to improve this part of the API?Beta Was this translation helpful? Give feedback.
All reactions