O356 error with token

Any idea why i can’t get my o356 :confused: working

| Traceback (most recent call last):
|   File "/config/custom_components/o365/helpers/setup.py", line 87, in _async_sensor_setup
|     await sensor_coordinator.async_config_entry_first_refresh()
|   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 288, in async_config_entry_first_refresh
|     raise ex
| homeassistant.exceptions.ConfigEntryNotReady: 403 Client Error: Forbidden for url: https://graph.microsoft.com/v1.0/me/chats?%24top=20 | Error Message: No authorization information present on the request.

2024-10-20 20:49:24.195 ERROR (SyncWorker_34) [O365.connection] Unable to fetch auth token. Error: (invalid_grant) AADSTS70000: The provided value for the ‘code’ parameter is not valid. The code has expired. Trace ID: c79fda66-1bc6-40a9-a01c-5f8471437800 Correlation ID: 62095122-0f4d-48c2-99aa-2a057825f525 Timestamp: 2024-10-20 18:49:24Z

2024-10-20 20:49:24.197 ERROR (MainThread) [custom_components.o365.repairs] Token file error - check log for errors from O365

My guess is that you need a token set in Office 365 to allow the integration to fetch data and that token probably had a timeout, which have now been reached.

i did the whole stuff from the o365 documentation. he is downloading the token when i try to login and this looks good.

“expires_in”: 3600,
“ext_expires_in”: 3600,
“access_token”: xxxxxxx
“expires_at”: 1729454695.4779844

no ideas:/?