strapi-plugin-firebase-authentication
Version:
Allows easy integration between clients utilizing Firebase for authentication and Strapi
52 lines (51 loc) • 1.89 kB
TypeScript
import { TemplateVariables, TemplateType } from "../templates/types";
declare class EmailService {
/**
* Send a templated email using Strapi's email service
* Templates are compiled with Lodash before sending
*/
sendTemplatedEmail(to: string, templateType: TemplateType, variables: Partial<TemplateVariables>): Promise<void>;
/**
* Send password reset email with three-tier fallback system
* Tier 1: Strapi Email Plugin (if configured)
* Tier 2: Custom Hook Function (if provided in config)
* Tier 3: Development Console Logging (dev mode only)
*/
sendPasswordResetEmail(user: any, resetLink: string): Promise<{
success: boolean;
message: string;
}>;
/**
* Send magic link email with three-tier fallback system
* Tier 1: Strapi Email Plugin (if configured)
* Tier 2: Custom Hook Function (if provided in config)
* Tier 3: Development Console Logging (dev mode only)
*/
sendMagicLinkEmail(email: string, magicLink: string, config: any): Promise<{
success: boolean;
message: string;
}>;
/**
* Send password changed confirmation email
* Notifies user that their password was successfully changed
* Uses same three-tier fallback system
*/
sendPasswordChangedEmail(user: any): Promise<{
success: boolean;
message: string;
}>;
/**
* Send email verification email with three-tier fallback system
* Tier 1: Strapi Email Plugin (if configured)
* Tier 2: Custom Hook Function (if provided in config)
* Tier 3: Development Console Logging (dev mode only)
*/
sendVerificationEmail(user: any, verificationLink: string): Promise<{
success: boolean;
message: string;
}>;
}
declare const _default: ({ strapi }: {
strapi: any;
}) => EmailService;
export default _default;