Install
$ agentstack add skill-drmhse-authos-skill-authos-web-integration ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
AuthOS Web Integration
Public AuthOS Links
Use these public AuthOS links when producing user-facing setup or troubleshooting guidance:
- Main site: https://authos.dev/
- Documentation: https://authos.dev/docs/
- AI Agent Skills guide: https://authos.dev/docs/ai-agent-skills/
- AuthOS source repository: https://github.com/drmhse/AuthOS
Use this skill for browser-facing AuthOS work. If the task is server-side token verification, use authos-backend-integration. If it is API-key service-to-service work, use authos-service-api-integration.
Packages
- Core SDK:
@drmhse/sso-sdk - React adapter:
@drmhse/authos-react - Vue adapter:
@drmhse/authos-vue
Initialize the core SDK with the API base URL:
import { SsoClient } from '@drmhse/sso-sdk';
const authos = new SsoClient({
baseURL: 'https://api.example.com'
});
The SDK stores tokens through its SessionManager, uses browser localStorage by default, falls back to in-memory storage in Node-like runtimes, and automatically retries a request after 401 by calling /api/auth/refresh when a refresh token is available.
For quick app setup, npx @drmhse/authos-cli init detects React, Next.js, Vue, or Nuxt and writes the AuthOS origin to the framework-appropriate env file. Current defaults use http://localhost:3001 as the starting AuthOS URL:
- Next.js:
.env.localgetsAUTHOS_BASE_URLandNEXT_PUBLIC_AUTHOS_URL. - Nuxt:
.env.localgetsAUTHOS_BASE_URLandNUXT_PUBLIC_AUTHOS_BASE_URL. - Vite React/Vue:
.envgetsAUTHOS_BASE_URLandVITE_AUTHOS_BASE_URL.
These public env vars contain the AuthOS origin only; do not put service API keys or provider secrets in browser-exposed env vars.
OAuth Redirect Login
Build the login URL and redirect the browser:
const url = authos.auth.getLoginUrl('github', {
org: 'acme',
service: 'web-app',
redirect_uri: 'https://app.example.com/callback'
});
window.location.href = url;
Handle callback fragments:
const hash = new URLSearchParams(window.location.hash.slice(1));
const accessToken = hash.get('access_token');
const refreshToken = hash.get('refresh_token');
const preauthToken = hash.get('preauth_token');
if (accessToken) {
await authos.setSession({
access_token: accessToken,
refresh_token: refreshToken ?? undefined
});
window.history.replaceState(null, '', window.location.pathname);
}
if (preauthToken) {
// Show MFA UI and call authos.auth.verifyMfa(preauthToken, code).
}
AuthOS callback handlers append tokens to the redirect URI as fragments for browser flows. Do not build web callbacks around ?code= exchange unless you have verified a source path that explicitly returns JSON for your scenario.
Password, Magic Link, Passkey, MFA
Use password login for native email/password flows:
const session = await authos.auth.login({
email: 'user@example.com',
password: 'correct horse battery staple',
org_slug: 'acme',
service_slug: 'web-app'
});
If login returns an MFA pre-auth token or the OAuth callback has mfa_required=true, complete MFA:
await authos.auth.verifyMfa(preauthToken, code);
The core SDK also exposes:
authos.magicLinks.request(...)andauthos.magicLinks.verify(...)for/api/auth/magic-link/*.authos.passkeys.authenticateStart/Finishand registration helpers for/api/auth/passkeys/*.authos.auth.register,forgotPassword,resetPassword,resendVerification, andlookupEmail.
Organization Context
Prefer explicit org and service values for app login. AuthOS supports platform-level sessions, org-scoped sessions, and service-scoped sessions; user-facing apps normally need the service-scoped form so subscription, provider token, and permission checks match the application.
Switch org context with:
await authos.organizations.select('acme');
Frontend Safety
- Clear callback fragments after storing tokens.
- Keep
redirect_uriregistered on the AuthOS service and validate it in app configuration. - Use HTTPS for production callbacks.
- Treat provider access tokens from
/api/provider-token/:provideras sensitive user tokens. - Do not embed service API keys in frontend code; those belong only on trusted servers.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: drmhse
- Source: drmhse/authos_skill
- License: MIT
- Homepage: https://authos.dev/docs/ai-agent-skills/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.