Giter Site home page Giter Site logo

Comments (5)

conradbez avatar conradbez commented on September 17, 2024 1

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.

conradbez avatar conradbez commented on September 17, 2024

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.

eluzhnica avatar eluzhnica commented on September 17, 2024

@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.

conradbez avatar conradbez commented on September 17, 2024

from streamlit-auth0.

eluzhnica avatar eluzhnica commented on September 17, 2024

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)

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.