27190_loggedin
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -26,7 +26,7 @@ | ... | @@ -26,7 +26,7 @@ |
| 26 | Learn how to configure a non-root public URL by running `npm run build`. | 26 | Learn how to configure a non-root public URL by running `npm run build`. |
| 27 | --> | 27 | --> |
| 28 | <title>AI-Pro ChatGPT</title> | 28 | <title>AI-Pro ChatGPT</title> |
| 29 | <script src='%REACT_APP_S3_LINK%/common/btutil-authenticate.min.js'></script> | 29 | <script src='%REACT_APP_BTCOMPONENT_S3_URL%/common/btutil-authenticate.min.js'></script> |
| 30 | <script> | 30 | <script> |
| 31 | let aiUser = btutil_getCookie('aiwp_logged_in'); | 31 | let aiUser = btutil_getCookie('aiwp_logged_in'); |
| 32 | if(!aiUser) { | 32 | if(!aiUser) { |
| ... | @@ -36,13 +36,13 @@ | ... | @@ -36,13 +36,13 @@ |
| 36 | 36 | ||
| 37 | let params = []; | 37 | let params = []; |
| 38 | params['objBody'] = objBody; | 38 | params['objBody'] = objBody; |
| 39 | params['strUrl'] = '%REACT_APP_API_LINK%/e/v1/authenticate/'; | 39 | params['strUrl'] = '%REACT_APP_EXTERNAL_API_URL%/e/v1/authenticate/'; |
| 40 | 40 | ||
| 41 | btutil_checkAuthentication(params, cbCheckAuthentication, cbErrCheckAuthentication); | 41 | btutil_checkAuthentication(params, cbCheckAuthentication, cbErrCheckAuthentication); |
| 42 | function cbCheckAuthentication(res) { | 42 | function cbCheckAuthentication(res) { |
| 43 | // console.log(res); | 43 | // console.log(res); |
| 44 | if (!res.success) { | 44 | if (!res.success) { |
| 45 | window.location.href = '%REACT_APP_REDIRECT_ACCOUNT%'; | 45 | window.location.href = '%REACT_APP_AUTH_FAILED_REDIRECTION_URL%'; |
| 46 | } else { | 46 | } else { |
| 47 | document.getElementById("root").classList.add("active"); | 47 | document.getElementById("root").classList.add("active"); |
| 48 | } | 48 | } | ... | ... |
-
Please register or sign in to post a comment