Seems Android and iOS sdk's response accessToken is API 2.0 version.
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

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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