Skip to content

Commit

Permalink
fixed regex to match in cases where Keep me signed in is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps committed Nov 29, 2018
1 parent 9ee647b commit 924f790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/oauth2-browser/authenticate.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
this relies on the fact that the ClientId is associated with the state parameter internally when another value isn't supplied manually.
*/
const match = window.location.href.match(
/&state=(.+)/
/&state=([^&]+)/
);
const clientId = match[1];
let session;
Expand Down

0 comments on commit 924f790

Please sign in to comment.