@zimyo/engage 0.0.56-pms → 0.0.57-pms
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OAUTH_SCOPE = "https://www.googleapis.com/auth/calendar https://www.google.com/calendar/feeds/ https://www.google.com/calendar/feeds http://www.google.com/calendar/feeds/default/allcalendars/full https://www.google.com/calendar/feeds/default/owncalendars/full http://www.google.com/calendar/feeds/ http://www.google.com/calendar/feeds https://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/owncalendars/full/ https://www.google.com/calendar/feeds/default https://www.google.com/calendar/freebusy https://www.googleapis.com/auth/calendar.app.created https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.owned";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TokenResponse } from '@react-oauth/google';
|
|
2
|
+
type Props = {
|
|
3
|
+
onSuccess: (tokenResponse: Omit<TokenResponse, 'error' | 'error_description' | 'error_uri'>) => void;
|
|
4
|
+
onError: (errorResponse: Pick<TokenResponse, 'error' | 'error_description' | 'error_uri'>) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const useGoogleOAuth: ({ onSuccess, onError }: Props) => (overrideConfig?: import("@react-oauth/google").OverridableTokenClientConfig | undefined) => void;
|
|
7
|
+
export default useGoogleOAuth;
|