catID

Developers

Add catID to any app

Users click your catID button, pick a cat persona on sso.cat, and come back signed in. You receive a name, email and avatar.

Vibe-coding? Let your AI do it

Copy the full integration guide and paste it into Cursor, Lovable, Claude Code, Bolt or v0. It contains everything the AI needs: flow, endpoints, widget, errors and security rules.

View llms.txt

How it works

1

Redirect

Send the user to sso.cat/authorize with your client_id, an allowed redirect_uri and a random state.

2

User picks a persona

catID signs the user in and lets them choose which persona to share.

3

Exchange the code

You get ?code=…&state=… back. Check state, then POST the code to sso.cat/api/public/token.

1 · Redirect

const state = crypto.randomUUID();
sessionStorage.setItem("catid_state", state);
location.href = "https://sso.cat/authorize?" + new URLSearchParams({
  client_id: "YOUR_CLIENT_ID",
  redirect_uri: "https://yourapp.com/callback",
  state,
});

3 · Exchange the code

const p = new URLSearchParams(location.search);
if (p.get("state") !== sessionStorage.getItem("catid_state")) throw "bad state";
const res = await fetch("https://sso.cat/api/public/token", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    code: p.get("code"),
    client_id: "YOUR_CLIENT_ID",
    redirect_uri: "https://yourapp.com/callback",
  }),
});
const { user } = await res.json();

Response

{
  "user": {
    "sub": "persona-uuid",
    "name": "Mochi",
    "email": "mochi@example.com",
    "bio": "Professional napper",
    "avatar": "😺"
  }
}