
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@authon/shared
Advanced tools
Shared types and constants for Authon SDKs.
npm install @authon/shared
# or
pnpm add @authon/shared
import type {
AuthonUser,
AuthonSession,
AuthTokens,
BrandingConfig,
WebhookEvent,
} from '@authon/shared';
import {
OAUTH_PROVIDERS,
PROVIDER_DISPLAY_NAMES,
PROVIDER_COLORS,
WEBHOOK_EVENTS,
API_KEY_PREFIXES,
DEFAULT_BRANDING,
DEFAULT_SESSION_CONFIG,
} from '@authon/shared';
| Type | Description |
|---|---|
AuthonUser | User object with id, email, displayName, avatarUrl, etc. |
AuthonSession | Active session with userId, ipAddress, expiresAt |
AuthTokens | Token response: accessToken, refreshToken, expiresIn, user |
BrandingConfig | Visual customization: colors, logo, border radius, locale |
SessionConfig | TTL settings, max sessions, single session mode |
WebhookEvent | Webhook payload: id, type, projectId, timestamp, data |
OAuthProviderType | Union of supported OAuth providers |
WebhookEventType | Union of webhook event types |
| Constant | Description |
|---|---|
OAUTH_PROVIDERS | Array of supported providers: google, apple, kakao, naver, ... |
PROVIDER_DISPLAY_NAMES | Human-readable provider names |
PROVIDER_COLORS | Brand colors (bg, text) per provider |
WEBHOOK_EVENTS | All webhook event types |
API_KEY_PREFIXES | Key prefixes: pk_live_, pk_test_, sk_live_, sk_test_ |
DEFAULT_BRANDING | Default branding configuration |
DEFAULT_SESSION_CONFIG | Default session settings (15min access, 7d refresh) |
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.