logoBuildBox

User authentication

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:

button.tsx
"use client";
 
import Link from "next/link";
 
const SigninButton = () => {
  return (
    <Link className="btn btn-primary" href="/signin">
      Login
    </Link>
  );
};
 
export default SigninButton;

Title

The callbackUrl variable in the config.js file is used accross the app to redirect the user at the right place after a successfull sign-up/login. It's usually a private page like /dashboard

Last updated on

On this page

No Headings
Edit on GitHub