Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions demos/okta/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import reflex as rx
import reflex_enterprise as rxe

from reflex_okta_auth import OktaAuthState, register_auth_endpoints
from reflex_okta_auth import OktaAuthState, okta_login_button, register_auth_endpoints


def index():
Expand All @@ -19,9 +19,7 @@ def index():
rx.text(OktaAuthState.userinfo.to_string()),
rx.button("Logout", on_click=OktaAuthState.redirect_to_logout),
),
rx.button(
"Log In with Okta", on_click=OktaAuthState.redirect_to_login
),
okta_login_button(),
),
rx.spinner(),
),
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ authors = [
]
dependencies = [
"reflex-enterprise (>=0.3.0)",
"cryptography",
"okta_jwt_verifier",
]

Expand Down
Loading