alepha@docs:~/docs/packages/alepha/server$
cat auth.md
1 min read
Last commit:

#Alepha - Server Auth

#Installation

Part of the alepha package. Import from alepha/server/auth.

npm install alepha

#Overview

OAuth2/OIDC authentication with social login providers.

Features:

  • OAuth authentication provider
  • Username/password authentication
  • Google OAuth integration
  • GitHub OAuth integration
  • Apple OAuth integration
  • Cookie-based, SSR-friendly authentication
  • Token management and refresh

#API Reference

#Primitives

  • $auth — Creates an authentication provider primitive for handling user login flows.
  • $authApple — TODO: Implement Apple authentication
  • $authCredentials — Already configured Credentials authentication primitive.
  • $authGithub — Already configured GitHub authentication primitive.
  • $authGoogle — Already configured Google authentication primitive.