line / line/flutter_line_sdk

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

Open
#125 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
225
Forks
60
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/a0cbf979-08c7-4002-a2b3-d05838282c5d)

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the login calls shown in the issue with the profile and openid scopes, then inspect how the Flutter plugin connects to the Android and iOS SDKs and exposes access tokens and ID tokens. Compare the returned tokens with the API versions and document or correct the behavior, including the reported scope error and crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter, ios
Domain
api, authentication, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.