Skip to content

Bug: Token id_token doesn't exist #36

@danielqba

Description

@danielqba

Prerequisites

Describe the issue

Maybe there is an error in the documentation for python-sdk?
I am following to the exact point in the tutorial, I can get to the login part, and the user even logs-in into kinde, and I can see it there, I can also do:
kinde_client.is_authenticated()
and it responds: True
the problem is when I want to access the user data, such as:
kinde_client.get_user_details()
I only get the error

raise KindeTokenException(f"Token {token_name} doesn't exist.")
kinde_sdk.exceptions.KindeTokenException: Token id_token doesn't exist.

I've tries in flask and django. I have setup everything according to the tutorial, and I am using the GrantType.CLIENT_CREDENTIALS

All redirects work fine, I even get the user logged in, but i cant access the info to know who the user is, email, etc.

Library URL

https://github.com/kinde-oss/kinde-python-sdk

Library version

1.2.2

Operating system(s)

Ubuntu

Operating system version(s)

Ubuntu 22.04

Further environment details

I've tried with flask 3.0.0 and django 4.2.7

Reproducible test case URL

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions