LocalDirectoryCredentialStore.list_users() enumerates all .json files in the credentials directory, but oauth_states.json (written by PersistentOAuthStateStore) is not a user credential file. In single-user mode, this file can be picked up first alphabetically, causing a TypeError when accessing credentials.scopes (None) since the state file has no scopes field. Filter out known non-credential files and filenames without '@' to ensure only actual user credential files are returned.
9.2 KiB
9.2 KiB