refactor: Update GoogleSignInButton to use correct Google Sheets scope

The GoogleSignInButton component in GoogleSignInButton.tsx has been updated to use the correct Google Sheets scope for authentication. Previously, it was using 'https://www.googleapis.com/auth/spreadsheets.readonly', but now it uses 'https://www.googleapis.com/auth/spreadsheets'. This change ensures that the component has the necessary permissions to interact with Google Sheets.
This commit is contained in:
Toran Bruce Richards
2024-07-20 22:56:25 +01:00
parent 7d9976689e
commit c16b8763e7

View File

@@ -7,7 +7,7 @@ interface GoogleSignInButtonProps {
}
const GoogleSignInButton: React.FC<GoogleSignInButtonProps> = React.memo(({ onTokenChange }) => {
const { token, error, login, logout } = useGoogleAuth('https://www.googleapis.com/auth/spreadsheets.readonly');
const { token, error, login, logout } = useGoogleAuth('https://www.googleapis.com/auth/spreadsheets');
const handleTokenChange = useCallback((newToken: string | null) => {
onTokenChange(newToken);