Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add more provider options for NextAuth #2019

Open
aidansunbury opened this issue Nov 7, 2024 · 1 comment
Open

feat: Add more provider options for NextAuth #2019

aidansunbury opened this issue Nov 7, 2024 · 1 comment
Labels
🌟 enhancement New feature or request

Comments

@aidansunbury
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I almost always use either Google or GitHub as an OAuth provider instead of Discord. It's not too much effort swap it out, but being able to select one or more of the most common providers besides just Discord in the CLI would be a nice quality of live improvement. This would probably only save a minute or two per project scaffolded, but it's hard to find major areas of improvement for ct3a these days.

Describe the solution you'd like to see

If NextAuth is selected as an authentication provider, include a multi select (which could look like the shadcn CLI add command) to choose auth providers to include, mandating at least one is selected. I am thinking of starting off with adding Google, GitHub, Apple, and Facebook as those are likely the most used providers.

Each selected provider would have their required environment variables added to the .env, .env.example, and env.js file. The required provider would be included in the auth.ts file.

I am down to start working on this, but I wanted to make the issue first to gauge how interested people are in this feature.

Describe alternate solutions

The alternative is just to do this setup manually if you want to use a different provider other than discord.

Additional information

No response

@aidansunbury aidansunbury added the 🌟 enhancement New feature or request label Nov 7, 2024
@pranavms13
Copy link

This does sound like a helpful cli feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌟 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants