import { REMOVE_ALLOWED_EMAIL } from '../../sql/google_auth.js'; export default function removeAllowedEmail(pool) { /** * Removes an allowed Google auth email. * * @param {string} email - The email address to remove. * @returns {Promise} * * @example * await store.google_auth.removeAllowedEmail('user@example.com'); */ return async (email) => { await pool .request() .input('email', email) .query(REMOVE_ALLOWED_EMAIL); }; }