Installation
Add the Auther frontend SDK to your project via npm or a CDN script tag.
Via npm
Works with any bundler — Vite, webpack, Next.js, Parcel.
bash
npm install @auther-sdk/frontendThen import and initialise once:
typescript
import Auther from '@auther-sdk/frontend';
Auther.init({
clientId: 'req_live_xxxxxxxxxxxxxxxx',
});Via CDN
No build step required. Drop this before your closing </body> tag. The SDK is available on the global window.Auther object.
html
<script
src="https://cdn.jsdelivr.net/npm/@auther-sdk/frontend/dist/auther.umd.js"
></script>
<script>
Auther.init({
clientId: 'req_live_xxxxxxxxxxxxxxxx',
});
</script>Using React or Next.js?
Use
@auther-sdk/react instead — it wraps this SDK with a ready-made <AutherProvider>, a useAuther() hook, and built-in session management. See the React SDK docs.