mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 17:11:13 -05:00
24 lines
447 B
TypeScript
24 lines
447 B
TypeScript
/**
|
|
* Conditional authentication logging utility
|
|
* Logs are only shown in development mode
|
|
*/
|
|
|
|
const isDevelopment = import.meta.env.DEV;
|
|
|
|
export const authLog = (...args: any[]) => {
|
|
if (isDevelopment) {
|
|
console.log(...args);
|
|
}
|
|
};
|
|
|
|
export const authWarn = (...args: any[]) => {
|
|
if (isDevelopment) {
|
|
console.warn(...args);
|
|
}
|
|
};
|
|
|
|
export const authError = (...args: any[]) => {
|
|
// Always log errors
|
|
console.error(...args);
|
|
};
|