tomerz-aai commited on
Commit
9c7a699
·
1 Parent(s): 2c6e41b
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -104,10 +104,9 @@ def add_solution_cbk(
104
  stable_id = user_info.get("id") if user_info else None
105
  logger.info(f"User stable ID: {stable_id}")
106
 
107
- # TODO: find a way to invalidate login status if token is outdated
108
- # if not stable_id:
109
- # return styled_error("Could not retrieve your stable user ID. Please try signing in again.")
110
- # user_id = stable_id
111
 
112
  if not profile.username:
113
  return styled_error("Could not retrieve username. Please try signing in again.")
 
104
  stable_id = user_info.get("id") if user_info else None
105
  logger.info(f"User stable ID: {stable_id}")
106
 
107
+ if not stable_id:
108
+ return styled_error("Could not retrieve your stable user ID. Please try signing in again.")
109
+ user_id = stable_id
 
110
 
111
  if not profile.username:
112
  return styled_error("Could not retrieve username. Please try signing in again.")