docs
🔯 Tutorials
User Authentification
Nextauth+mangodb
ℹ️

With Next Start You get two inbuilt ways to authenticate your users: Magic Links & Google Oauth (select from the below links)

you can send users to the signin/signup page like this:

ButtonSignin.tsx
"use client"
 
import { signIn } from "next-auth/react";
import config from "@/config";
                
const SigninButton = () => {
  return (
    <button
      className="btn btn-primary"
      onClick={() => signIn(undefined, { callbackUrl: config.auth.callbackUrl })}
    >
      Login
    </button>
  );
};
                
export default SigninButton;