Request had insufficient authentication scopes

I am trying to use the google photo integration . However I get an error saying :"Error at communication with google api: Request had insufficient authentication scopes.

I both tried my local ip as my duckdns url
How to avoid this error.
Homeassistant runs on a VM on synology