Skip to content

Commit

Permalink
Fix a bug for clients with realtime access
Browse files Browse the repository at this point in the history
The wrong scope prevented the key creation with  email and password and force the users to login with keys
  • Loading branch information
doluk committed Dec 5, 2022
1 parent 1395266 commit 6c3ac04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,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

Expand Down

0 comments on commit 6c3ac04

Please sign in to comment.