strapi-plugin-firebase-authentication
Version:
Allows easy integration between clients utilizing Firebase for authentication and Strapi
30 lines (29 loc) • 861 B
TypeScript
import type { Core } from "@strapi/strapi";
export interface LinkResult {
totalStrapiUsers: number;
totalFirebaseUsers: number;
linked: number;
skipped: number;
errors: number;
}
/**
* Auto-Link Service
*
* Automatically links existing Strapi users with their Firebase counterparts
* by matching email and phone numbers.
*
* Runs on every Strapi startup in the background (non-blocking).
*/
declare const _default: {
/**
* Link all Strapi users with matching Firebase users
*
* This runs automatically on Strapi startup to ensure all users
* who exist in both Strapi and Firebase are properly linked.
*
* @param strapi - Strapi instance
* @returns Promise<LinkResult> - Summary of linking operation
*/
linkAllUsers(strapi: Core.Strapi): Promise<LinkResult>;
};
export default _default;