-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth JS 6.4.0 causes issues in Angular apps when testing #1174
Comments
This seems to happen on the Vue sample as well. However, it’s in the browser console for Vue, and downgrading to Auth JS 6.2.0 doesn’t make it go away. Steps to reproduce:
|
@mraible Do you know what version of
|
@jaredperreault-okta I'm not using yarn, I'm using npm. I'm not sure if
If I try it in the Vue sample, it's a similar result:
|
This is happening in Okta-React as well. Is there a workaround? |
@saosebastiao are you able to reproduce this with the Okta React Sample? What version of |
Fixed in 6.4.1 |
I just tried validating everything is fixed using the okta-angular-sample. If I upgrade it to use Auth JS 6.4.2, the problem does go away. However, if I upgrade the okta-vue-sample to 6.4.2, there are still errors in my browser's console. |
I see something similar in the Okta CLI's React sample:
By "similar", I mean |
We're also seeing this in 6.4.3 when using react. |
@StephenAtCFA can you provide more details? You're seeing this error in your application itself, or in testing (jest or otherwise)? What versions of the other relevant modules are you using, ie React, okta-react? Do you see this same behavior in different versions of okta-auth-js? |
Seeing the same error messages in the latest Downgrade |
@mrcotter What browser/OS are you testing this on? I am currently unable to repro this issue (using okta-auth-js 6.4.3) |
On brave v 1.36.122 / mac os 12.3 / node 16.14.0 / react 17.0.2 / webpack 5.70.0 / @babel/core 7.17.8 / okta-react 6.4.3 / okta-auth-js 6.4.3 |
Using redirect not okta widget |
On latest versions of Chrome (100.0.4896.88) and Firefox (99.0.1) on macOS (12.3.1) An example from the browser console: |
I tried upgrading the Okta CLI's Vue sample to [email protected] today and there are still errors in my console. . |
I am seeing this in my React project: |
Downgrading to 6.1.0 works |
cc @pzi @richmason @TD-DO |
Upgrading Originally using the following: |
@KLCarrierDirect can you provide a snippet or an example repo which illustrates this error? |
Thank you for the stack traces, but can you provide a code snippet as well? Perhaps from your |
Preliminary testing with our Next.js app seems to agree :) Thanks for getting this fixed. Now we just need to get the M1 issue addressed, so everyone can build the app. |
|
Can you try upgrading auth-js to I also recommend fetching tokens directly from the
|
Thank you so much, upgrading to |
Closing this issue since the original report of the A few other discussions have spawned on this thread, please open tickets if you need additional assistance |
Okta-react 사용중 console에 BroadCastChannel 에러가 계속 떠서, okta-auth-js를 6.7.0으로 업데이트 하면서 오류 해결함. 참고 okta/okta-auth-js#1174
Describe the bug?
Today I discovered that if you upgrade an Angular app from using Auth JS 6.2.0 from 6.4.0, there are stack traces when you run
npm test
:If I revert to Auth JS 6.2.0, the problem goes away.
What is expected to happen?
What is the actual behavior?
Reproduction Steps?
There's no stack trace because v6.2.0 is used. Update
package.json
to use"@okta/okta-auth-js": "^6.4.0"
and try again.You'll see the stack trace, even though tests pass.
SDK Versions
Everything works great with:
Execution Environment
macOS Monterey
Additional Information?
No response
The text was updated successfully, but these errors were encountered: