Your agent can build the integration.See the two prompts

An SDK in your language

One AnyOAuth account covers all your apps. Create projects under that account, register their callback URLs, and reuse the same SDK integration across them. Project credentials work across available providers; AnyOAuth manages the provider app IDs and secrets.

Create your project

Backend SDKs

Mount the Node.js managed router for automatic callbacks and sessions, or use the two-method login flow in your backend language. Start with the simple SDK quickstart and current-source installation.

Your backend

Mount in your existing Express app.

import { createAuth } from "@anyoauth/node/express";

const auth = createAuth({
clientId: process.env.ANYOAUTH_CLIENT_ID,
clientSecret: process.env.ANYOAUTH_CLIENT_SECRET,
origin: "http://localhost:3000",
});

app.use("/auth", auth.router());

npm install @anyoauth/nodeManaged backend routerCurrent source example · published 0.1.0 predates these helpers

start Login
import { AnyOAuth } from "@anyoauth/node";

const client = new AnyOAuth({
clientId: process.env.ANYOAUTH_CLIENT_ID ?? "YOUR_CLIENT_ID",
clientSecret: process.env.ANYOAUTH_CLIENT_SECRET ?? "YOUR_CLIENT_SECRET",
baseUrl: process.env.ANYOAUTH_API_ORIGIN ?? "https://api.anyoauth.com",
});

// After this call, save loginAttempt in the browser-bound server session, persist it, then redirect to url.
const login = await client.startLogin({
provider: "google",
redirectUri: process.env.ANYOAUTH_REDIRECT_URI ?? "https://your-app.example/auth/callback"
});

npm install @anyoauth/nodeConfidential backend SDKCurrent source example · published 0.1.0 predates these helpers

Frontend frameworks

One browser SDK, the same simple login call in HTML, React, Vue, Astro, Svelte, Next.js and Nuxt. Full profile and sign-out examples.

Your login button
import * as anyoauth from '@anyoauth/client';

export default function Login() {
return <button onClick={() => anyoauth.startLogin('google')}>
Sign in with Google
</button>;
}

npm install @anyoauth/clientBrowser helpers · uses your backend sessionCurrent source example · published 0.1.0 predates these helpers

Browser and mobile clients

Browser and mobile SDKs also provide secret-free state/PKCE and callback helpers for custom integrations. A confidential backend completes authentication. Choose Expo, Swift, Kotlin, Flutter or browser TypeScript in the language tabs below.

create Login URL
import { AnyOAuth } from "@anyoauth/node";

const client = new AnyOAuth({
clientId: process.env.ANYOAUTH_CLIENT_ID ?? "YOUR_CLIENT_ID",
clientSecret: process.env.ANYOAUTH_CLIENT_SECRET ?? "YOUR_CLIENT_SECRET",
baseUrl: process.env.ANYOAUTH_API_ORIGIN ?? "https://api.anyoauth.com",
});

const transaction = await client.createLoginAttempt();
// Persist this transaction in the initiating session before navigation.
const authorizationUrl = client.createLoginURL({
provider: "google",
redirectUri: process.env.ANYOAUTH_REDIRECT_URI ?? "https://your-app.example/auth/callback",
state: transaction.state,
codeChallenge: transaction.codeChallenge
});

npm install @anyoauth/nodeConfidential backend SDKCurrent source example · published 0.1.0 predates these helpers

Published registry packages

10 packages have verified 0.1.0 releases. Use the version-pinned installs below and examples for their released API. Newer managed adapters and named browser session exports are source-only until their next release.

Versioned source distribution

Go and Swift resolve GitHub v0.1.0 tags directly. NuGet and pub.dev publication is pending; follow their versioned source build instructions. Each SDK has a public repository with native tests and source checksums. The website does not host SDK package archives.

go get github.com/AnyOAuth/anyoauth-go@v0.1.0
# SwiftPM:
.package(url: "https://github.com/AnyOAuth/anyoauth-swift.git", exact: "0.1.0")

Run the published-package walkthrough · Released API and source-version boundary · Model schemas

Browse the AnyOAuth organization · Read the integration quickstart