mirror of
https://github.com/exchanges-lab/view.git
synced 2026-08-07 22:24:42 +08:00
Upload files.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
window.API_CONFIG = { baseUrl: 'https://xxx.xxx.com' };
|
||||
|
||||
/**
|
||||
* Google OAuth Configuration
|
||||
* Configure your Google OAuth Client ID here
|
||||
* Access control is managed via the test users list in GCP Console
|
||||
*/
|
||||
|
||||
const AUTH_CONFIG = {
|
||||
// Client ID obtained from GCP Console
|
||||
// Replace with your actual Client ID
|
||||
clientId: 'xxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com',
|
||||
|
||||
// Authentication success callback
|
||||
onSuccess: (user) => {
|
||||
console.log('Authentication successful:', user.email);
|
||||
// Additional logic can be added here, e.g. logging
|
||||
},
|
||||
|
||||
// Authentication failure callback
|
||||
onError: (error) => {
|
||||
console.error('Authentication error:', error);
|
||||
// Error handling logic can be added here
|
||||
}
|
||||
};
|
||||
|
||||
// Export configuration
|
||||
window.AUTH_CONFIG = AUTH_CONFIG;
|
||||
Reference in New Issue
Block a user