feat(next/auth): Allow passing additional options (e.g., depth) to login function in @payloadcms/next/auth #13026
a95z
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current
login
function exported from@payloadcms/next/auth
is convenient and clean, but it's very limited in certain real-world use cases because it does not allow passing additional options to the underlyingpayload.login
call.Specifically, I needed to retrieve the authenticated
user
with related data populated (e.g., acart
field withdepth: 3
). However, the built-inlogin
does not allow forwarding standard options likedepth
,locale
, oroverrideAccess
, even though these are accepted bypayload.login
under the hood.Beta Was this translation helpful? Give feedback.
All reactions