Kunal commited on
Commit ·
2ecc14b
1
Parent(s): 0df423e
update auth.py
Browse files- src/auth.py +2 -1
src/auth.py
CHANGED
|
@@ -64,7 +64,8 @@ class MALAuth:
|
|
| 64 |
f"code_challenge={self.code_challenge}&"
|
| 65 |
f"redirect_uri={REDIRECT_URI}"
|
| 66 |
)
|
| 67 |
-
webbrowser.open(auth_url)
|
|
|
|
| 68 |
|
| 69 |
start_time = time.time()
|
| 70 |
while not self.OAuthHandler.auth_code and not self.OAuthHandler.error:
|
|
|
|
| 64 |
f"code_challenge={self.code_challenge}&"
|
| 65 |
f"redirect_uri={REDIRECT_URI}"
|
| 66 |
)
|
| 67 |
+
# webbrowser.open(auth_url) # Remove this for hosted environments
|
| 68 |
+
st.markdown(f"[Click here to authenticate with MyAnimeList]({auth_url})", unsafe_allow_html=True)
|
| 69 |
|
| 70 |
start_time = time.time()
|
| 71 |
while not self.OAuthHandler.auth_code and not self.OAuthHandler.error:
|