Skip to content

🐛 Bug Report: Invalid scopes when creating OAuth2 session #60

Closed
@stnguyen90

Description

@stnguyen90

👟 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:

apiQuery.add("${it.key}[]=${it.value.toString()}")

🎲 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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions