There are 2 built-in ways to authenticate users with ShipFast: Magic Links & Google Oauth.
Once you've completed at least one of the tutorials above, you send users to the signin/signup page like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 "use client"; import Link from "next/link"; const SigninButton = () => { return ( <Link className="btn btn-primary" href="/signin"> Login </Link> ); }; export default SigninButton;
If the user has role: admin in database table users, he will be redirected to /dashboard
If the user has role: user, he will be redirected to /saas
To create an admin (you), sign up and manually edit the user record in users table supabase by settings role: admin.
All new users have role: user by default.