sdk-for-android icon indicating copy to clipboard operation
sdk-for-android copied to clipboard

🐛 Bug Report: Invalid scopes when creating OAuth2 session

Open stnguyen90 opened this issue 1 year ago • 0 comments

👟 Reproduction steps

  1. 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?

stnguyen90 avatar Sep 16 '24 19:09 stnguyen90