Same as YerlanKussainov. August 2020. Xcode 11.6.
After entering valid Apple ID and password I immediately see "Your session has expired. Please log in" message again.
defaults write -g DVTDeveloperAccountUseKeychainService -bool NO and relaunching Xcode didn't help.
Reinstalling Xcode didn't help.