Next.js
The App Router, with route handlers, middleware and currentUser(). Three files.
Every web quickstart below is a complete application you can run, not a snippet, and the iOS and Android SDKs each come with an example app. Start from the one that matches your framework.
The App Router, with route handlers, middleware and currentUser(). Three files.
Request handlers and a handle hook, for Svelte 4 and 5. Three files.
A plugin and composables over Nuxt's h3 handlers. Three files.
Signal-based session state, with SolidStart handlers and middleware. Three files.
Server-only, in one file. HX-Redirect-aware sign-in, and guards that answer fragments correctly.
No build step at all: two script tags and a page.
Server-only guards that answer a target-addressed 401, because Alpine AJAX cannot be told to navigate.
A Swift package with no dependencies: sign-in through the system browser, tokens in the Keychain, and refresh serialised across an app and its extensions. Built, and not yet published.
A Kotlin library for Android 8.0 and later: sign-in through a Custom Tab, tokens sealed by the Keystore, and refresh serialised across the app's processes. Built, and not yet published.
Thirteen packages on npm under @proteles: the framework-agnostic
core, a backend-for-frontend so tokens never reach the browser, bindings for
React, Next, Vue, Svelte, Solid, htmx, Alpine and Alpine AJAX, middleware for
Express and Fastify, and a typed Management API client.
Native SDKs for iOS, in Swift, and for Android, in Kotlin, are built and not yet published. Their quickstarts are above.