Created
November 2, 2016 16:44
-
-
Save sskoopa/d4289653ec0d3c2f15e8390a095dd8be to your computer and use it in GitHub Desktop.
auth0-lock SSR hack, almost working
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hack for auth0 lock component, which cannot yet be used for SSR | |
// navigator = { | |
// userAgent: "internal" | |
// }; | |
// location = { | |
// hash: '', | |
// href: 'https://local.konakb.com', | |
// protocol: 'https' | |
// }; | |
// window = { | |
// JSON: JSON, | |
// location: location | |
// }; | |
// document = { | |
// location: location, | |
// getElementById: function(id) { | |
// return {}; | |
// }, | |
// getElementsByTagName: function(name) { | |
// return [{appendChild: function(elem){}}]; | |
// }, | |
// createElement: function(name) { | |
// return { | |
// addEventListener: function(evt) { | |
// return null; | |
// }, | |
// hostname: 'kona-kb.auth0.com', | |
// style: {cssText: ''} | |
// }; | |
// } | |
// }; | |
// end hack for auth0-lock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment