User Auth (Client-Side)
In any situation where you're calling our API with a Niftory AppUser, this is the type of authentication you should use. If you're using your own User system, you can skip this portion of the guide.
To allow your users to sign in, set up their accounts, and interact with your application data, you'll have them log in via the OAuth authorization code grant. This is the way most OAuth providers authenticate end users, and most OAuth libraries will handle the flow for you automatically.
By default, this will authenticate the user as an AppUser. This will allow them to see and manage their own data within your application.
We currently support login via Google. In the future, we will support other OIDC providers, and wallet-only login as well.
NextAuth
In the sample app, user authentication is handled via next-auth
:
This can be replaced by any other authentication system - everything is standard OAuth.
Last updated