Next auth with role based access control and credentials provider

Does anyone know of a good github repo which shows how to use next auth with t3 and the credentials provider? I have been reading the docs and watching videos for days and can't seem to find anything that connects all of the pieces. I successfully set up role based access control with github and google but the credentials provider is a bit of a beast. I also successfully set up a register page which saves to the user to the db with an encrypted password (bcyrpt). However, trying to set up a custom signin page that displays github, google, and email/pw and then redirects the user to the dashboard when done and successfully invokes the session callback is tricky. Not quite sure how to do that yet.
2 Replies
Swiichy
Swiichy11mo ago
I am also looking for a repository that covers the proper implementation of credentials. If you find one, let me know.
Blade
Blade7d ago
Have you find any?
Want results from more Discord servers?
Add your server