Skip to main content

Types & API Reference

Core Types

OAuthToken

The main token interface used throughout the authentication library:

Authentication Methods

ClaudeAuth (Node.js)

Static methods available when using @vibe-kit/auth/node:

ClaudeWebAuth (Browser)

Instance-based authentication for browser environments:

Storage Interfaces

TokenStorage

Base interface for token storage implementations:

Available Implementations

  • MemoryTokenStorage: In-memory storage for server-side use
  • LocalStorageTokenStorage: Browser localStorage (client-side only)
  • CookieTokenStorage: Cookie-based storage for SSR applications

Coming Soon

Additional provider support with similar interfaces:
  • Gemini Max: Access Google’s most advanced AI models
  • Grok Max: Leverage xAI’s premium models
  • ChatGPT Max: Use OpenAI’s latest models