Skip to content

rm pydantic #4

Answered by Alc-Alc
JacobCoffee asked this question in Q&A
Dec 5, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The middleware (by extension the plugin as well) is agnostic to the type of model used. https://github.com/Alc-Alc/litestar-basic-auth/blob/49e77b45052f74021672c61433aa8cba88d92b1c/litestar_basic_auth/app_with_plugin.py shows a dataclass being used as the user model.

PS: Oops, I converted to a discussion.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JacobCoffee
Comment options

@Alc-Alc
Comment options

Answer selected by JacobCoffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2 on December 05, 2023 12:18.