#Implementing simple auth

1 messages · Page 1 of 1 (latest)

pure mesa
#

I've been reading the docs for a bit, but I can't find the answer I'm looking for anywhere.

I want the users to be able to log in via OAuth (Google) normally. Since I don't have any control on that side, what would be the best way to manage permission levels for users? Am I better off with simple username/password auth?

If yes, I can't really find anything for it. I'm guessing https://sidebase.io/nuxt-auth/ is not really meant for that, and I'd have to just call my DB using axios and handle it manually?

Introduction to nuxt-auth and its features as an authentication module for your Vue / Nuxt 3 application.

main bolt
#

You would extend the user model sidebase auth uses to include some sort of roles/permissions system that u want and then extend the session to include those new fields as well

Once that is done you would create your own middleware or logic to handle how those permissions are used

pure mesa
#

Thanks, but which provider should I be using here? The credentials one and do the api calls manually when logging in?

#

It's just for 3-5 users, so there's really no need to overcomplicate it 🙂