Any Benefits to using Auth0 in Next-Auth?

Hey, currently working on an expo app that uses Auth0 for auth. Planning on using it aswell for the nextjs app. I was looking at next-auth, and it seems to provide functionality to use Auth0 as a provider. Would there realistically be any benefits to using this? I feel like it would just be easier to use the @auth0/nextjs-auth0 package, as next-auth just feels like an unnecessary middle man. I do store additional data about users, i.e their products etc, and use prisma currently, but I dont strictly need next-auth for this.
13 Replies
barry
barry2y ago
yes ignore next auth here that is assuming you're fine with paying for auth0 which it seems like next auth is just a free option (obv not entirely cuz storing users = server + db = money) but you dont pay for the service itself
WOLFLEADER
WOLFLEADER2y ago
yea, used next auth in the past for a few projects and its been great only reason for auth0 is coz its a react native app altho im working on trying to get nextauth with expo working...
barry
barry2y ago
create-t3-turbo hasnt done it?
WOLFLEADER
WOLFLEADER2y ago
nope working with julius to try get it working
barry
barry2y ago
wtf does the mobile app do there is just a useless brick
WOLFLEADER
WOLFLEADER2y ago
yea lol it can communicate with ur api via trpc but thats about it for now
barry
barry2y ago
so you need to make an "adapter" for it? i would assume thats all you'd need
WOLFLEADER
WOLFLEADER2y ago
Powered by next-auth: https://cln.sh/G5CwgW0Z
CleanShot Cloud
CleanShot 2023-01-28 at 12.57.31
Video uploaded to CleanShot Cloud
WOLFLEADER
WOLFLEADER2y ago
this is what julius got working <#1068918318460837949>
barry
barry2y ago
maybe being allowed to make auth endpoints yourself through various next auth helper functions
WOLFLEADER
WOLFLEADER2y ago
but apple is very specific on their login auth flow i mean im still early in development and can switch t o next auth if needed but idk if using next auth over auth0 would bring any benefits
barry
barry2y ago
was that painfully slow cuz of dev mode or is it just painfully slow
WOLFLEADER
WOLFLEADER2y ago
just painfully slow i believe. im gonna try get it working later today Biggest hiccup will be apple login I think for now I’ll stick with auth0
Want results from more Discord servers?
Add your server