Add1E commited on
Commit
a10bcb2
·
1 Parent(s): 7b2c5ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def extract_track_id_from_url(url):
43
  def app():
44
 
45
  # Step 1: User Authorization
46
- if st.session_state.get('code') is None or (st.session_state['access_token'] is None):
47
  auth_params = {
48
  'client_id': CLIENT_ID,
49
  'response_type': 'code',
 
43
  def app():
44
 
45
  # Step 1: User Authorization
46
+ if st.session_state.get('code') is None or ('access_token' not in st.session_state or st.session_state['access_token'] is None):
47
  auth_params = {
48
  'client_id': CLIENT_ID,
49
  'response_type': 'code',