notification scope added
This commit is contained in:
parent
e0be9146dd
commit
5836b8823f
@ -73,6 +73,10 @@ const getScopeForService = (_serviceKey?: ServiceKey): string => {
|
|||||||
'ZohoCRM.modules.READ',
|
'ZohoCRM.modules.READ',
|
||||||
//settings
|
//settings
|
||||||
'ZohoCRM.settings.READ',
|
'ZohoCRM.settings.READ',
|
||||||
|
//crm bulk read scope
|
||||||
|
'ZohoCRM.bulk.READ',
|
||||||
|
//notification access
|
||||||
|
'ZohoCRM.notifications.ALL',
|
||||||
// Zoho Books (use granular scopes if preferred instead of FullAccess)
|
// Zoho Books (use granular scopes if preferred instead of FullAccess)
|
||||||
'ZohoBooks.FullAccess.READ',
|
'ZohoBooks.FullAccess.READ',
|
||||||
// Zoho People
|
// Zoho People
|
||||||
@ -171,8 +175,8 @@ const ZohoAuth: React.FC<ZohoAuthProps> = ({
|
|||||||
// Backend exchange mode: only log and return the authorization code to the caller
|
// Backend exchange mode: only log and return the authorization code to the caller
|
||||||
const handleAuthorizationCode = useCallback(async (authCode: string) => {
|
const handleAuthorizationCode = useCallback(async (authCode: string) => {
|
||||||
console.log('[ZohoAuth] Authorization code received:', authCode);
|
console.log('[ZohoAuth] Authorization code received:', authCode);
|
||||||
console.log('[ZohoAuth] Send this code to your backend to exchange for tokens.');
|
console.log('[ZohoAuth] Send this code to your backend to exchange for tokens.',user);
|
||||||
const response = await manageToken.manageToken({ authorization_code: authCode, id: user?.id, service_name: 'zoho', access_token: accessToken });
|
const response = await manageToken.manageToken({ authorization_code: authCode, id: user?.uuid, service_name: 'zoho', access_token: accessToken });
|
||||||
console.log('[ZohoAuth] Response from manageToken:', response);
|
console.log('[ZohoAuth] Response from manageToken:', response);
|
||||||
// Return the code via onAuthSuccess using the existing shape
|
// Return the code via onAuthSuccess using the existing shape
|
||||||
onAuthSuccess?.({
|
onAuthSuccess?.({
|
||||||
|
|||||||
@ -8,8 +8,8 @@ import { clearSelectedService } from '@/modules/integrations/store/integrationsS
|
|||||||
let pendingRequest: any = null;
|
let pendingRequest: any = null;
|
||||||
|
|
||||||
const http = create({
|
const http = create({
|
||||||
// baseURL: 'http://192.168.1.24:4000',
|
baseURL: 'http://192.168.1.23:4000',
|
||||||
baseURL: 'http://160.187.167.216',
|
// baseURL: 'http://160.187.167.216',
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user