I would like to use this library to connect to an OAuth provider (Twitch in my case) which returns scopes as an array of strings rather than a space-separated string. These changes update the token response parser to allow this case.
Testing
Updated tests to reflect this change
Tested using Deno KV OAuth's demo test. This can be seen on my fork of the library, when switching deps.ts to point to my changes here.
Let me know if there's anything I missed or need to change 👍
I saw in another issue this comment that kinda covers this PR. I think I'll close this in favor of waiting for that work to be done, since this change is not technically spec compliant
Motivation
I would like to use this library to connect to an OAuth provider (Twitch in my case) which returns scopes as an array of strings rather than a space-separated string. These changes update the token response parser to allow this case.
Testing
Updated tests to reflect this change
Tested using Deno KV OAuth's demo test. This can be seen on my fork of the library, when switching![image](https://github.com/cmd-johnson/deno-oauth2-client/assets/25411268/ba384d1b-c98c-44b2-8d05-8f58bab0a7c9)
deps.ts
to point to my changes here.Let me know if there's anything I missed or need to change 👍