Comments (5)
Nice nice!
okay I think to fix it (and this is something I wanted to do before) we’ll need to
(1) change that component to a class
(2) give that class a state variable “authToken” = false
(3) before we fetch a new auth token we
- check if (! authToken ) and skip if we have a token
- try silentAuthToken
- Try popupAuthToken
- setState({authToken:recieved_auth_token})
Don't have time atm but might try something over the weekend. Happy to PR if you get it working.
(Sorry for bad formatting I'm on my phone)
from streamlit-auth0.
Hi @eluzhnica thanks so much for the praises.
No plans at the moment, what’s the error code and stack trace (or behaviour) it gives you when it brakes?
Also if you could open your “console” output in the browser (under settings / Developer) and post the error message I can have a look at it.
from streamlit-auth0.
@conradbez Yes, here's the error shown on cosole:
Uncaught (in promise) Error: Login required
at new e (errors.tsx:9)
at utils.tsx:15
at auth0-provider.tsx:306
at 2.4ac5b17e.chunk.js:2
at Object.throw (2.4ac5b17e.chunk.js:2)
at u (2.4ac5b17e.chunk.js:2)
The streamlit app gives no error, so nothing to show there.
Auth0 has nothing relevant on the logs except type: Failed Silent Auth
and description: Login required
.
from streamlit-auth0.
from streamlit-auth0.
Can you try a different browser
I've tried with Safari, Chrome, Firefox, same issue. Tried incognito mode too.
with getAccessTokenWithPopup if you know how to do that.
That works, yes! Although at the expense that now the user is triggered twice everytime.
from streamlit-auth0.
Related Issues (18)
- Cannot import component HOT 6
- Any way to make the component keep its state when used in multi page streamlit app? HOT 1
- Border color HOT 1
- Send user's metadata HOT 1
- Blank window when clicking login
- 0.1.4 does not work with .eu domains
- Logout pop-up does not automatically close HOT 3
- Remove domain check? HOT 4
- Can't load auth0_component.login_button in prod HOT 1
- How to allow other domains than just .us HOT 3
- Error message after successful login
- Add python-dotenv as developer dependency
- Refector React code to remove extra files and templated functionality
- Add build to pip to github actions
- user_info returning false HOT 10
- Inner iframe when logging out HOT 3
- Deployment support in aws 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 streamlit-auth0.