Trying to get my assets in my project, getting 3 errors. how to solve? logged out and in working now

The only thing I tried so far is to close shut down the project and then the Unity Hub and then reopened them over again, but the errors still exist.

I’m using unity editor version: 2021.3.18f1 personal and the hub version is: 3.4.1

When I open the Package Manager window in my project it’s trying to make a refresh and then throw 3 erorr messages in the console.

the first error:

[Package Manager Window] Cannot perform upm operation: Unable to perform online search:
Cannot fetch authorization code. User access token is expired or invalid. You may need to sign out and sign in again. [Unknown].
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

the second error:

[Package Manager Window] Error searching for packages.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

the third error:

[Package Manager Window] Error while getting auth code: System.InvalidOperationException: Failed to call Unity ID to get auth code.
UnityEditor.AsyncHTTPClient:smile:one (UnityEditor.AsyncHTTPClient/State,int)

I have no close what does it mean and what to do.

screenshot:

Looks like you just need to sign out and in of the hub/editor again.

Thanks!! I had the same problem and it has been solved like this!!!