@acromedia/gesso-drupal-auth
Drupal authentication plugin for Gesso framework. This plugin provides authentication functionality for Drupal CMS including login, logout, user registration, and password reset capabilities.
Features
- User login/logout
- User registration
- Password reset
- Password reset email
- Password reset token validation
- Session management
Installation
pnpm add @acromedia/gesso-drupal-auth
Usage
import { useAuth } from '@acromedia/gesso-drupal-auth';
const auth = useAuth(config);
// Login
const user = await auth.login(username, password);
// Logout
await auth.logout();
// Register new user
const newUser = await auth.register(email, username, password);
// Password reset
await auth.password.passwordResetEmail(email);
await auth.password.passwordReset({ email, password, timestamp, token });