Giter Site home page Giter Site logo

Comments (4)

chuckshaw avatar chuckshaw commented on September 21, 2024

I'm attempting to use this client for the first time and am having the same issue:

Uncaught TypeError: Cannot use 'in' operator to search for 'window' in undefined
    at reqwest.js:15
    at reqwest.js:8
    at Object.<anonymous> (reqwest.js:7)
    at __webpack_require__ (bootstrap cec33e3f03e680d4b2cf:19)
    at Object._typeof (reqwestRequest.js:13)
    at __webpack_require__ (bootstrap cec33e3f03e680d4b2cf:19)
    at Object.<anonymous> (index.js:1)
    at __webpack_require__ (bootstrap cec33e3f03e680d4b2cf:19)
    at Object.<anonymous> (index.js:2)
    at __webpack_require__ (bootstrap cec33e3f03e680d4b2cf:19)

from okta-auth-js.

jmelberg-okta avatar jmelberg-okta commented on September 21, 2024

Hi @rodoabad and @chuckshaw,

This library was designed explicitly for browser applications and has difficulties supporting:

  • Server-side rendering
  • Node.js

There are a couple of workarounds described in this comment; however, our team is having discussions around extending support for the cases mentioned above in the near future.

For now, I'm going to keep this issue open and label it as an "enhancement". Sorry for the inconvenience!

from okta-auth-js.

nmarshall23 avatar nmarshall23 commented on September 21, 2024

Just to add another reason to why bug in reqwest need to be addressed.

Okta-auth-js will fail to load when building a VueJs in Modern Mode
Because Modern browsers have decent support for native ES2015. In production ES2015 code is loaded via <script type="module"> ES modules. A fallback is provided for older browsers. Philip Walton details how this is done.

This technique will become more common as it results in faster load times.

from okta-auth-js.

manueltanzi-okta avatar manueltanzi-okta commented on September 21, 2024

@rodoabad @chuckshaw @nmarshall23

Good News!

We released the Okta AuthN SDK as a part of the okta-auth-js library, check it out!

https://github.com/okta/okta-auth-js#node-js-usage

from okta-auth-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.