This commit is contained in:
Qiaochu Hu 2026-05-20 06:39:55 +04:00 committed by GitHub
commit bc61ac6117
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -171,10 +171,10 @@ export default function Login() {
formData.append('code_verifier', code_verifier || '');
formData.append('code', code);
formData.append('grant_type', 'authorization_code');
formData.append('client_id', 'aa49cdd0-318e-46bd-a540-0f1e5f2b391f');
formData.append('client_id', import.meta.env.VITE_STACK_CLIENT_ID || '');
formData.append(
'client_secret',
'pck_t13egrd9ve57tz52kfcd2s4h1zwya5502z43kr5xv5cx8'
import.meta.env.VITE_STACK_CLIENT_SECRET || ''
);
try {

9
src/vite-env.d.ts vendored
View file

@ -14,6 +14,15 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_STACK_CLIENT_ID?: string;
readonly VITE_STACK_CLIENT_SECRET?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
interface Window {
// expose in the `electron/preload/index.ts`
ipcRenderer: import('electron').IpcRenderer;