Hi, has anyone successfully used this component recently? Iām trying to integrate it into my app, and running into the issue
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://localhost:8501') does not match the recipient window's origin ('https://pkonduri.auth0.com').
I can successfully login, but when I click logout, I get the error shown above.
Note that I had to edit the file auth0_component/__init__.py slightly so that it would accept my domain that Auth0 gave me. I had to comment out a few lines of code in geterifiedSubFromToken method just to be able to get this far, because the library made the assumption that my domain ended in .us.auth0.com, which it does not. Edit shown below:
def getVerifiedSubFromToken(token, domain):
domain = "https://"+domain
# if domain[-13:] != '.us.auth0.com':
# print('domain should end with ".us.auth0.com" (no slash)')
# raise ValueError
# rest of the code is unchanged.....
Any guidance would be very much appreciated @conrad_bezuidenhout ? @amy-why looks like youāve dug deep into this lib, mind seeing what I may be doing wrong?
Hi @Danyal_Zahid thatās exciting! Do you have an example implementation / site where I can try it out? Before stripping out all of my hacky auth code for this, I would love to test it out if possible.
Hi Danyal, thank you for your package. I am able to set it up and test logging in. However, I noticed the login status turned back to āLoginā when the page refreshes. I turned on both Refresh Token and Rotation Refresh Token Expiration for several hours but didnāt fix the issue. Do you know when should I config so that the user can remain logged in for several days with the token in the cookie?