mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-22 19:47:28 +00:00
Merge b1b6c28ade into a5355f4719
This commit is contained in:
commit
bc61ac6117
2 changed files with 11 additions and 2 deletions
|
|
@ -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
9
src/vite-env.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue