Ashhar
commited on
Commit
•
ced155a
1
Parent(s):
397dfe3
impro log
Browse files- helpers/auth.py +2 -1
- helpers/imageCdn.py +1 -0
helpers/auth.py
CHANGED
@@ -55,7 +55,8 @@ def runWithAuth(func: Callable[[], Any]):
|
|
55 |
st.session_state.token, st.session_state.refreshToken
|
56 |
)
|
57 |
st.session_state["token"] = jwtResponse["sessionToken"].get("jwt")
|
58 |
-
|
|
|
59 |
|
60 |
func()
|
61 |
except AuthException:
|
|
|
55 |
st.session_state.token, st.session_state.refreshToken
|
56 |
)
|
57 |
st.session_state["token"] = jwtResponse["sessionToken"].get("jwt")
|
58 |
+
userEmail = st.session_state["user"].get("email")
|
59 |
+
U.pprint(f"{userEmail} successfully authenticated!")
|
60 |
|
61 |
func()
|
62 |
except AuthException:
|
helpers/imageCdn.py
CHANGED
@@ -7,6 +7,7 @@ import utils as U
|
|
7 |
|
8 |
def initCloudinary():
|
9 |
cloudinary.config(secure=True)
|
|
|
10 |
|
11 |
|
12 |
def __getImageId(imagePath: str):
|
|
|
7 |
|
8 |
def initCloudinary():
|
9 |
cloudinary.config(secure=True)
|
10 |
+
U.pprint("Cloudinary initialized")
|
11 |
|
12 |
|
13 |
def __getImageId(imagePath: str):
|