You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using dcc.Interval trigger invocation of auth_function on set interval #153
I have a dcc.Interval defined in one of my pages and BasicAuth for authentication with an auth_func. After I login, the auth_func is invoked on each interval. Is this behavior expected? If it is, what can I check in the auth_func to skip my credentials checking (avoid db/api call) when it is called in the interval?
auth_func
def authorization_function(username, password):
print("Calling Auth: {}".format(datetime.now()))
if (username == "hello") and (password == "world"):
return True
else:
return False
Activity