mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-29 13:15:46 +00:00
Compare commits
2 Commits
v3.0.0-alp
...
v3.0.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1dc5cb4cc | ||
|
|
3c9bc8c67f |
@@ -31,9 +31,7 @@ export const ContinuePage = () => {
|
||||
}, 500);
|
||||
};
|
||||
|
||||
const urlParsed = URL.parse(redirectUri);
|
||||
|
||||
if (urlParsed === null) {
|
||||
if (!URL.canParse(redirectUri)) {
|
||||
return (
|
||||
<ContinuePageLayout>
|
||||
<Text size="xl" fw={700}>
|
||||
@@ -47,9 +45,11 @@ export const ContinuePage = () => {
|
||||
);
|
||||
}
|
||||
|
||||
const uri = new URL(redirectUri);
|
||||
|
||||
if (
|
||||
window.location.protocol === "https:" &&
|
||||
urlParsed.protocol === "http:"
|
||||
uri.protocol === "http:"
|
||||
) {
|
||||
return (
|
||||
<ContinuePageLayout>
|
||||
|
||||
Reference in New Issue
Block a user