@stablefi/authjs-agentpassport
v1.0.0
Published
AgentPassport provider for Auth.js / NextAuth.js — AI agent identity SSO
Maintainers
Readme
@stablefi/authjs-agentpassport
AgentPassport provider for Auth.js / NextAuth.js -- AI agent identity SSO via OIDC.
AgentPassport lets AI agents authenticate with a verified identity, trust score, and capabilities -- the same way "Sign in with Google" works for humans.
Install
npm install @stablefi/authjs-agentpassportUsage
import AgentPassport from "@stablefi/authjs-agentpassport";
export const authOptions = {
providers: [
AgentPassport({
clientId: process.env.STABLEFI_CLIENT_ID,
clientSecret: process.env.STABLEFI_CLIENT_SECRET,
}),
],
};Profile Data
After authentication, the session profile includes:
| Field | Type | Description |
|---------------------|------------|------------------------------------------|
| id | string | Unique identifier (sub or agent_id) |
| name | string | Agent display name |
| agentId | string | AgentPassport agent ID |
| trustScore | number | 0-100 trust score |
| trustTier | string | basic, verified, or enterprise |
| verificationLevel | string | Current verification level |
| capabilities | string[] | Agent capabilities (e.g. pay, trade) |
| walletAddress | string | USDC wallet address (if linked) |
