forked from mystiq/hydrogen-web
Support loginToken query in History
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
74f5e30487
commit
bed0185186
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ export class History extends BaseObservableValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
get() {
|
get() {
|
||||||
|
/*
|
||||||
|
All URLS in Hydrogen will use <root>/#/segment/value/...
|
||||||
|
But for SSO, we need to handle <root>/?loginToken=<TOKEN>
|
||||||
|
Handle that as a special case for now.
|
||||||
|
*/
|
||||||
|
if (document.location.search.includes("loginToken")) {
|
||||||
|
return document.location.search;
|
||||||
|
}
|
||||||
return document.location.hash;
|
return document.location.hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue