Skip to content

Seems Android and iOS sdk's response accessToken is API 2.0 version. #125

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

Open
mackbex opened this issue Mar 27, 2025 · 0 comments
Open

Comments

@mackbex
Copy link

mackbex commented Mar 27, 2025

Greeting.

i'm implementing this flutter sdk into my app that it has an unexpected data reponses.

once i call login with profile scope as below,

final result = await LineSDK.instance.login(
    scopes: ["profile"]
);

it successfully receives accessToken.
but after i try to validation check with our api then it occurs error.
that i realized that the accessToken as i received is line API 2.0 version.

of course we downgrade the api from 2.1 to 2.0 then it works fine but 2.0 is already Deprecated so it's quite hesitate to use.

so i tried to use idToken with below permission
Image

but i get the error

{"error":"invalid_request","error_description":"scope has not required permission"}

and also i tried with OpenID scope but it just get's app crash. (seems it receives some token tho)

is there any way to get 2.1 verion of accessToken or idToken?

thank you.

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