Next.js Discord

Discord Forum

Auth.js v5 (Beta) and custom pages

Unanswered
Judder posted this in #help-forum
Open in Discord
Hello! I'm trying to implement auth v5 to my app, and did it successfully after all the problems. Now I ran into another one, which doesn't seem so easy to solve.
Custom login/logout/register pages, I need providers for these.
With the new v5 and next 14 app router I can't use getProviders() anymore because it's seemingly not an function anymore.
Is there a way to get custom pages to work with this combo, and if yes, what is it and could it be added to the docs?
Also, I think the auth.js v5 docs should be based on app router since next is moving into that direction, and if you're using auth beta you're probably using newest version of next too.

4 Replies

Thanks @Cornish Rex i actually looked at this earlier and almost cried when I saw it had no custom login page either. Only providers it gets is the sessionprovider for client side auth :/
Cornish Rex
if you need i can share my custom login page with you but i dont have login with credantials yet, i integrated with only github
If you got it to work with v5 then I would love to know the method you did it with