Export ProviderType from 'next-auth' #9915
pippinmole
started this conversation in
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.
-
Goals
ProviderType
Non-Goals
No response
Background
Currently (unless I'm being silly), you don't have any way to pass down
ProviderType
to a component, and so have to useAwaited<ReturnType<typeof getProviders>>
:Proposal
Export the type returned from
getProviders
:ProviderType
, so we can use it like so:Beta Was this translation helpful? Give feedback.
All reactions