Skip to content

Commit

Permalink
fix: empty oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
naaive committed Aug 5, 2024
1 parent d9b5c8b commit 2e69b33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openagent/ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def enable_auth():
auth_settings = [settings.CHAINLIT_AUTH_SECRET, settings.OAUTH_AUTH0_CLIENT_ID, settings.OAUTH_AUTH0_CLIENT_SECRET, settings.OAUTH_AUTH0_DOMAIN]
return all(arg is not None for arg in auth_settings)
return all(arg for arg in auth_settings)


if enable_auth():
Expand All @@ -38,7 +38,6 @@ def initialize_memory() -> ConversationBufferMemory:


if enable_auth():

@cl.oauth_callback
def oauth_callback(
provider_id: str,
Expand Down

0 comments on commit 2e69b33

Please sign in to comment.