//File: frontend/app/_auth/AuthDriver.js
import cookieDriver from './drivers/cookieDriver';
import bearerDriver from './drivers/bearerDriver';

const mode = (process.env.NEXT_PUBLIC_AUTH_MODE || 'cookie').toLowerCase();
const driver = mode === 'bearer' ? bearerDriver : cookieDriver;
export default driver;
