Skip to content

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

@mackbex

Description

@mackbex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions