Comments (4)
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.
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.
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.
@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)
- Snyk High Vulnerability: SNYK-JS-INFLIGHT-6095116 through [email protected] HOT 2
- Validate claims does not follow OpenID spec for audience validation HOT 3
- Okta License appears in build 196 times HOT 3
- token.getWithRedirect not happening immediately HOT 3
- 'OktaAuthModule' does not appear to be an NgModule class. HOT 2
- TokenManager.emitAdded() called multiple times on tab duplication HOT 1
- Error when httpRequest deletes STATE_TOKEN_KEY_NAME from storage HOT 4
- Migrate type tests to TSTyche HOT 5
- Uncaught (in promise) TypeError: wellKnownResponse is undefined HOT 3
- "autoRenew" deprecation notice should link to new functionallity
- Cannot sign out when DSSO is enabled HOT 1
- field validation errors not showing up with associated fields
- getTokens() - Add check to see if tokens are expired (or will in 30s) and try to refresh if so HOT 1
- creating a new account sdk does not crete session HOT 3
- index.js:76 [okta-auth-sdk] WARN: a saved auth transaction exists in storage. This may indicate another auth flow is already in progress. HOT 12
- Package uses a deprecated feature that is being reported as an issue in my Application. HOT 1
- Separate token.getWithPopup from Enrollment when using Social HOT 1
- errorcode:login_required : The client specified not to prompt, but the user is not logged in HOT 3
- getOrRenewAccessToken method is missing in 7.7.0 release
- Okta magic link not working in different browser without OTP HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-auth-js.