Closed jvartanian closed 1 year ago
This resolves #182
The example facebook Web flow also currently fails due to the returned response not being parsed correctly.
The Url from the provider/facebook is returned as:
http://localhost:3000/login?#access_token=...
Which then gets parsed as
{
"#access_token": "..."
}
Which then thows ERR_NO_ACCESS_TOKEN
as it doesn't expect to find the hash
Thanks for this PR
Currently, URL fragments are being treated as a part of the query string. These are two distinct pieces of a URL, and should be handled separately. This PR updates the logic within
WebUtils.getUrlParams()
to:urlString
using the Javascript URL interface. This interface properly separates the query string and fragment