Skip to content
Docs

MojoAuth documentation

Welcome to MojoAuth

Welcome to MojoAuth — passwordless authentication made simple for modern developers.

app/api/auth/[...nextauth]/route.ts
import OIDCProvider from "next-auth/providers/openid-connect"
export const authOptions = {
providers: [
OIDCProvider({
id: "mojoauth",
clientId: process.env.MOJOAUTH_CLIENT_ID,
clientSecret: process.env.MOJOAUTH_CLIENT_SECRET,
issuer: process.env.MOJOAUTH_ISSUER,
checks: ["pkce", "state"],
}),
],
}
Full Next.js guide

Start here

Pick how your app signs users in

Four ways in. Each one ends the same way: a verified user and tokens your app trusts.

Sign-in methods

Every method, one integration

Turn methods on in the dashboard. Your code doesn't change: the same OIDC flow returns the same tokens.

Integrations

Plugs into the stack you already run

All integrations

Go deeper