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
loginfunction exported from@payloadcms/next/authis 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.logincall.Specifically, I needed to retrieve the authenticated
userwith related data populated (e.g., acartfield withdepth: 3). However, the built-inlogindoes not allow forwarding standard options likedepth,locale, oroverrideAccess, even though these are accepted bypayload.loginunder the hood.Beta Was this translation helpful? Give feedback.
All reactions