WeeShip

Tutorials

User authentication

There are 2 built-in ways to authenticate users with WeeShip: 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:

ButtonSignin.js

1"use client";
2
3import Link from "next/link";
4
5const SigninButton = () => {
6  return (
7    <Link className="btn btn-primary" href="/signin">
8      Login
9    </Link>
10  );
11};
12
13export default SigninButton;
14
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