Getting Started
Try it online
You can experiment with noauth.sh directly in your browser at https://demo.noauth.sh.
Installation
noauth.sh is distributed as an open-source library available on the NPM registry.
ES Module
sh
npm install @noauth/browsersh
bun add @noauth/browsersh
pnpm add @noauth/browserCDN
html
<script src="https://unpkg.com/@noauth/browser@latest/dist/noauth.min.js"></script>Basic Setup
1. Configure your domain
In your application dashboard, configure the domain where you'll use authentication. localhost is allowed.
2. Import the SDK
javascript
import { signin } from "@noauth/browser";3. Start authenticating
javascript
const { verified } = await signin("[email protected]", {
apiKey: "your-api-key",
});That's it! It's that simple. 🎉
TIP
Don't forget to check the Access Token section to understand how to validate your users' access on the backend.