mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user