diff --git a/coc/client.py b/coc/client.py index 3df2e2b6..f42d393a 100644 --- a/coc/client.py +++ b/coc/client.py @@ -195,6 +195,8 @@ def __init__( self.http = None # set in method login() self.realtime = realtime + if realtime and self.key_scopes == "clash": + self.key_scopes = 'clash:*:verifytoken,realtime' # without that the key creation will fail due to the wrong scopes. self.correct_tags = correct_tags self.load_game_data = load_game_data