Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: update_token() got multiple values for argument 'name' in flask app #55

Closed
Frederick-S opened this issue May 21, 2018 · 1 comment

Comments

@Frederick-S
Copy link

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:

def update_token(name, token):
    session['token'] = token

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.

@lepture
Copy link
Owner

lepture commented May 21, 2018

Questions should be asked on StackOverflow.


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.

@lepture lepture closed this as completed May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants