Error message "unauthorized" in browser's console
yangzhaox opened this issue · comments
Version: 1.2.4
Describe the bug
There is an error message "unauthorized" in browser's console when accessing the server.
Steps To Reproduce
- open https://auth.moochee.us/app in Chrome
- open the console
Expected behavior
No error in console
Screenshots
![Screenshot 2023-11-26 at 5 17 03 PM](https://private-user-images.githubusercontent.com/722332/285698354-59872681-8bf2-4b98-a5a7-631af2e57590.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMDQ3MjcsIm5iZiI6MTcyMTIwNDQyNywicGF0aCI6Ii83MjIzMzIvMjg1Njk4MzU0LTU5ODcyNjgxLThiZjItNGI5OC1hNWE3LTYzMWFmMmU1NzU5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxN1QwODIwMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MDI2NzAyMThlOGVhNjM3MzlmOTdkZTRiZjVmMGEyZThhMDU3NWQwYjlhM2M5OWVlNmNjZWRhMDE5MzM0ZmY3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.lQ4sh6MNsTofkRmfXAn8WB-VusMabOiEFWDD8jKsAbo)
Desktop (please complete the following information):
- OS: MacOS latest
- Browser Chrome latest
- Version 119.0.6045.105
@yangzhaox This is expected behavior, when it is unauthorized we show login screen else we show logged in state.
However, we are optimizing this in the coming release of authorizer-js SDK so it should disappear and this unauthorized state will be maintained internally.
I know it can add annoying results in your reporting tool like Sentry.