linguaielts-api / fronted /src /utils /googleAuth.js
AnhviNguyen
Forecast, dashboard, pronunciation, nginx fixes (exclude large ML weights)
3092643
Raw
History Blame Contribute Delete
288 Bytes
/** Redirect URI must match Google Cloud Console + backend GOOGLE_REDIRECT_URI */
export function googleRedirectUri() {
const fromEnv = import.meta.env.VITE_GOOGLE_REDIRECT_URI
if (fromEnv) return fromEnv.replace(/\/$/, '')
return `${window.location.origin}/auth/google/callback`
}