Skip to main content
@kcode/services exports implementations of the SDK service interfaces.

4.5.1 DemoAuthService

A development-only implementation of MutableAuthService. Replace either boundary for production.
The default validator accepts only admin / admin and returns the user demo-admin with the platform.admin permission. The default session store is InMemoryAuthSessionStore.

4.5.2 ConsoleLogger

Implements the SDK Logger and writes to the console.

4.5.3 InMemoryNotificationService

Implements NotificationService. It assigns IDs of the form notification-<n>, keeps notifications in memory, and notifies listeners when the list changes. dismiss(id) returns false for an unknown ID, and clear() removes all notifications.