Sign In

@authon/shared

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@authon/shared

Shared types and constants for Authon SDKs

Source
npmnpm
Version
0.1.15
Version published
Weekly downloads
27
Maintainers
1
Weekly downloads
 
Created
Source

@authon/shared

Shared types and constants for Authon SDKs.

Install

npm install @authon/shared
# or
pnpm add @authon/shared

Usage

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';

API Reference

Types

TypeDescription
AuthonUserUser object with id, email, displayName, avatarUrl, etc.
AuthonSessionActive session with userId, ipAddress, expiresAt
AuthTokensToken response: accessToken, refreshToken, expiresIn, user
BrandingConfigVisual customization: colors, logo, border radius, locale
SessionConfigTTL settings, max sessions, single session mode
WebhookEventWebhook payload: id, type, projectId, timestamp, data
OAuthProviderTypeUnion of supported OAuth providers
WebhookEventTypeUnion of webhook event types

Constants

ConstantDescription
OAUTH_PROVIDERSArray of supported providers: google, apple, kakao, naver, ...
PROVIDER_DISPLAY_NAMESHuman-readable provider names
PROVIDER_COLORSBrand colors (bg, text) per provider
WEBHOOK_EVENTSAll webhook event types
API_KEY_PREFIXESKey prefixes: pk_live_, pk_test_, sk_live_, sk_test_
DEFAULT_BRANDINGDefault branding configuration
DEFAULT_SESSION_CONFIGDefault session settings (15min access, 7d refresh)

Documentation

authon.dev/docs

License

MIT

Keywords

authon

FAQs

Package last updated on 23 Feb 2026

Did you know?

Socket

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.

Install

Related posts