Skip to content

Instantly share code, notes, and snippets.

@sskoopa
Created November 2, 2016 16:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sskoopa/d4289653ec0d3c2f15e8390a095dd8be to your computer and use it in GitHub Desktop.
Save sskoopa/d4289653ec0d3c2f15e8390a095dd8be to your computer and use it in GitHub Desktop.
auth0-lock SSR hack, almost working
// 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