get available providers

is there a function to get available providers on client / server meaning auth.getProviders() and I will get providers, configured in auth.ts
2 Replies
russssl
russsslOP2w ago
i need this because I add them conditionally, depending on presence of envs
KiNFiSH
KiNFiSH7d ago
you can use your auth instance to get the lists of providers -
export const socialProviderLists = Object.keys(auth.options.socialProviders)
export const socialProviderLists = Object.keys(auth.options.socialProviders)

Did you find this page helpful?