You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a update_token method according to the doc in my flask app, but it shows TypeError: update_token() got multiple values for argument 'name'. Here is the code:
After debugging the source code I found that self.token_updater already contains the name in keyword, so I changed update_token(name, token) to update_token(token, name) and it works fine. Is the doc not updated or do I miss something? I am using authlib 0.7.
The text was updated successfully, but these errors were encountered:
There are two update_token, the one with name is used in OAuth. The one without name is used on register. I didn't see your code, so I can't figure out what's wrong.
I wrote a
update_token
method according to the doc in my flask app, but it showsTypeError: update_token() got multiple values for argument 'name'
. Here is the code:After debugging the source code I found that
self.token_updater
already contains thename
inkeyword
, so I changedupdate_token(name, token)
toupdate_token(token, name)
and it works fine. Is the doc not updated or do I miss something? I am using authlib 0.7.The text was updated successfully, but these errors were encountered: