sdk-for-android
sdk-for-android copied to clipboard
🐛 Bug Report: Invalid scopes when creating OAuth2 session
👟 Reproduction steps
- Call
account.createOAuth2Session()and pass in a list of strings for the scopes
👍 Expected behavior
It should generate a URL where scopes are like scopes[]=user.read&scopes[]=user.write
👎 Actual Behavior
Instead, the scopes get generated like scopes[]=[user.read, user.write].
This is probably due to the invalid handling of the list here:
https://github.com/appwrite/sdk-for-android/blob/85fac9dedd90eefe8407382cdd9f54b436862703/library/src/main/java/io/appwrite/services/Account.kt#L1212
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct