Return credentials input fields in getProviders
#3130
Labels
enhancement
New feature or request
good first issue
Good issue to take for first time contributors
stale
Did not receive any activity for 60 days
Uh oh!
There was an error while loading. Please reload this page.
Description 📓
I want to be able to get my credentials providers input fields using the Client API from
/api/auth/providers
. I'm not able to do that withimport { getProviders } from "next-auth/react"
in4.0.0-beta.6
The
providers
client API doesn't give the same fields as the default sign-in page providers object. I don't get access toproviders["credentials"].credentials
object like the vendor-provided sign-in page does. Would it be possible to fill in an extra key in theproviders["credentials"].credentials
object in the/api/auth/providers
API to supply me the input fields required so that I can dynamically create the credentials input fields instead of hard-coding them?How to reproduce ☕️
What I currently get from
/api/auth/providers
:What I would like to get:
What I want to do in my custom signin page:
What I have to resort doing--hard-coding in my credentials fields:
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
The text was updated successfully, but these errors were encountered: