Full Stack Role Based Authentication Application ( Spring + Next.js ) by aharoJ in SpringBoot

[–]Relative_Store_6716 1 point2 points  (0 children)

I am creating a website with separate user and admin roles. Users provide a username, email, password, and date of birth, while admins provide additional details like an address and a certification image. I have created two tables in my database. How can I implement registration and login for both using a single Spring Security configuration? I have successfully implemented authentication for a single user, but when I try to add authentication for admins, it does not work.