Replies: 1 comment 2 replies
-
You can authenticate users, delegating the actual authentication to a respected third party. If you don't trust any of those, we also allow you to configure your own IdentityProvider, or you can use passwordless (Email) logins, or a traditional credentials login if you already have such a system set up. Obtaining user If using your own IdentityProvider, you can talk to your third-party APIs the same way as mentioned above. You can also utilize the user session for auth on your Next.js app's backend (simply read the session, and you can assume the user is logged in, execute protected operations on their behalf). You can protect certain pages to only be visible for logged-in users (like a paywall), or implement a role-based/subscription model. The possibilities are really endless. Also check out our FAQ and Tutorials pages to get some inspiration. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I think I'm missing something here: what's the point of using next-auth? let's say I've configured some oauth providers and am able to login in my next app. but I'd still need an api to have some kind of authentication (e.g. oauth) - which makes using next-auth oauth standalone pretty useless?
Beta Was this translation helpful? Give feedback.
All reactions