Open Andreasgdp opened 1 year ago
Could also look into mocking providers https://github.com/trpc/trpc/blob/main/examples/next-prisma-websockets-starter/src/pages/api/auth/%5B...nextauth%5D.ts
This is also mentioned in the T3 documentation as a suggestion https://create.t3.gg/en/usage/next-auth#setting-up-the-default-discordprovider
Is your feature request related to a problem? Please describe
For new contributors, it cant take a while and be a bit confusing where to start when developing, as it requires setting up a provider to be able to sign in.
Describe the solution you'd like
To solve this, we can implement a mock user, which when enabled using an environment variable would replace the standard user/session system from next-auth to use a mocked user instead.
This would enable new contributors to get up and running immediately, just using the mock user instead of having to set up their own provider be it Discord or Google OAuth.
Describe alternatives you've considered
No response
Additional context
This here is a good example of how to implement mocking a user. https://github.com/codyseibert/online-classroom/blob/cbcc7f6987e269be4ef125561aa0f532b8e055e2/src/libs/mockUser.ts
Code of Conduct