I noticed when trying to fetch the scopes using this strategy that the scopes in both the /token response and in the JWT from auth0 are space delimited, but the credentials object tries to String.split/3 with comma as the delimiter.
For example, the response contains "scope": "openid profile email" and the credential scopes are: credential.scopes = [ "openid profile email"], I think the expected result should be credential.scopes = ["openid", "profile", "email"]
I noticed when trying to fetch the scopes using this strategy that the scopes in both the
/token
response and in the JWT from auth0 are space delimited, but thecredentials
object tries toString.split/3
with comma as the delimiter.For example, the response contains
"scope": "openid profile email"
and the credential scopes are:credential.scopes = [ "openid profile email"]
, I think the expected result should becredential.scopes = ["openid", "profile", "email"]