Hosted link of the project: blogwebsite
TO DOs
I think are resolved:
- deletion of all the refreshTokens once user logs out. maybe this isn't the issue cuz new login means new refreshtoken anytime. and only payload is changing as it involves the current time and then the sign also changes so yea good so far.
- logout feature works well even if there is invalid token.
- There is still an error. The login part has edge cases which needs attention. such has I cant be looking for accessToken when loggin in or maybe when user purposely deletes the session storage... ->I need not clear it while signing it. done. ->And I have to handle the case of empty session storage and invalid tokens. ->I think I require to use try catch in everystuff where I use axios and (done) ->I have to refreshThePage when refreshToken is invalid. This is causing multiple refreshes. as while loggin in you dont have refreshtokens so invalid refreshToken error is occuring? (done used window.location.pathname to check and only then redirect.) Try-catch will avoid the error. and refreshing will cause to navigate to login.
- logout needs to precede a refresh otherwise
- Good error handling around many api calls. (there are still uncaught errors.)
- error handling, for empty post data. -> create a util function to validate posts before sending it.<--- no need of it as the app runs smoothly even if you perform something like sending invalid (empty) post it works like it never happened so you have to put the correct value there in order to continue. -> also have to ensure that app dont crash when we send the empty response in backend. <-- solvable by using .validate of the model instance
- deletion of old images once user replaces banner images. <---- the link of the image contains the id. so we can use it. Okay functionality achieved.
- changing the way ImageURL is being produced. --- sacking the url part seems to be the key. other I think is to edit the url from the db... nah just used conditions to modify the img src attribute based on the type of url in blogBanner. ->changing the way ImageUrl is used in fronend. (done) -> defaultImage is not coming up nicely. (fixed) -> deleting of post with defaultimages causing some trouble.(fixed) 0.1: deletion in updation (done), 0.2: deletion in detailView (done) -> update page not working. (fixed)
- Deployment.... (done)