Replies: 1 comment
-
There's 2 ways to validate requests using AuthRequest:
validate() returns the session, and validateUser() returns the session and user. It isn't really useful to have both, and if you're using SvelteKit, using both in a single load function flow can lead to 2 database calls (depending on the other). I think we should replace validate() with the current validateUser(), so it returns both user and session. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I deprecate or replace AuthRequest.validate() on this library?
Beta Was this translation helpful? Give feedback.
All reactions