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

OauthResponse.__init__() got an unexpected keyword argument 'id_token' #32

Open
Bjarne-one opened this issue Apr 27, 2024 · 0 comments
Open

Comments

@Bjarne-one
Copy link

During the authentication process, the above-mentioned error always occurs.
The code has not been changed recently, is it possible that Discord has made changes?

with the following code

@app.route("/oauth/callback")
def callback():
    code = request.args['code']
    access_token = client.oauth.get_access_token(code, REDIRECT_URI).access_token
    session['token'] = access_token
    return redirect("/other_direction/")

in the meantime only this error message appears and logically the authentication process cannot be completed

  File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\site-packages\zenora\impl\oauthapi.py", line 57, in get_access_token
    return OauthResponse(**payload)
TypeError: OauthResponse.__init__() got an unexpected keyword argument 'id_token'

Can anyone tell me what I should do?

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

1 participant