You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be reproduced if the redirect url contains a hash (#) after the query params indicator (?). Below is the snippet of code that is causing it (web-utils.ts ). As you see it ignores ? if it contains a #
let idx = urlString.indexOf("#");
if (idx === -1) {
idx = urlString.indexOf("?");
}
The text was updated successfully, but these errors were encountered:
ynunez
added a commit
to ynunez/capacitor-oauth2
that referenced
this issue
Jan 22, 2021
Capacitor version:
You can use
npx cap doctor
for the output from the root directory of your project. -->Run
npx cap doctor
:Library version:
OAuth Provider:
Your Plugin Configuration
Affected Platform(s):
Current Behavior
When the redirect URL contains a hash after the query params it fails to parse the parameters.
For example:
Expected Behavior
It should parse the parameters after the
?
and ignore the#
if it's after.Parameters should be parsed as follows for the url above
Reproduction Steps
It can be reproduced if the redirect url contains a hash (#) after the query params indicator (?). Below is the snippet of code that is causing it (
web-utils.ts
). As you see it ignores?
if it contains a#
The text was updated successfully, but these errors were encountered: