Jon Solow
commited on
Commit
·
ed0fd3f
1
Parent(s):
8130ea1
Put handler on login_by_token shared page
Browse files- src/shared_page.py +5 -1
src/shared_page.py
CHANGED
@@ -23,7 +23,11 @@ def local_css():
|
|
23 |
def login_token_arg_if_exists():
|
24 |
url_params = st.query_params
|
25 |
if arg_token := url_params.get("token"):
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
|
28 |
|
29 |
def common_page_config():
|
|
|
23 |
def login_token_arg_if_exists():
|
24 |
url_params = st.query_params
|
25 |
if arg_token := url_params.get("token"):
|
26 |
+
try:
|
27 |
+
login_by_token(arg_token)
|
28 |
+
except Exception:
|
29 |
+
st.write("Sorry, error logging in. Please refresh to try again.")
|
30 |
+
st.stop()
|
31 |
|
32 |
|
33 |
def common_page_config():
|