CINXE.COM
<!DOCTYPE html> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <p>Redirecting to <a href="https://home.omg.lol/account">https://home.omg.lol/account</a>...</p> <script type="module"> import {Passage} from "https://cdn.passage.id/passage-js.js" const passage = new Passage("pTVkzxZoCz0hRZhTnmhbiqn4"); const session = passage.getCurrentSession(); try { const authToken = await session.getAuthToken(); document.cookie = "psg_auth_token=" + authToken + ";path="; window.location.replace("https://home.omg.lol/account"); } catch(error) { document.cookie = "omg_redirect=https://home.omg.lol/account;path=/"; window.location.replace("https://home.omg.lol/sign-in"); } // //const user = passage.getCurrentUser(); //console.log("User = " + user); //console.log("Redirecting"); //document.cookie = "psg_auth_token=" + authToken + ";path="; //window.location.replace("https://home.omg.lol/account"); </script>