Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. #Should the client or the server take more security precautions?#
  2. Both should take plenty of security precautions, but the client should take
  3. more as it is used to access the server.
  4.  
  5. #What's the difference between local storage and session storage?#
  6. Local storage saves data for a specific domain and keeps it available
  7. for any new tabs or windows in that browser viewing that domain.
  8. Session storage is the same as local storage EXCEPT that the data doesn't
  9. persist outside of the session/tab. After the session the data is gone,
  10. thus providing more security than local storage.
  11.  
  12.  
  13. #What problem does a JWT expiry time solve?#
  14. A user cannot be signed in indefinitely, thus making it harder for malicious
  15. parties to use JWT they are able to find.
  16.  
  17. #Is a refresh endpoint protected or public?#
  18. Protected
  19.  
  20. #What would happen if a refreshed JWT was requested with a JWT that had already expired?#
  21. It shouldn't go through
  22.  
  23. #What does it mean to queue a callback?#
  24. To have a function called after a certain amount of time
  25.  
  26. #What does the clearTimeout function do and what argument do you pass into it?#
  27. It takes in a setTimeout function reference
  28. It clears the timeout which has been set by the setTimeout function
  29.  
  30. #For which of the following events should a refresh request be queued after?#
  31. A successful user registration request
  32. A successful login request **
  33. A page load
  34. A successful API request to a protected endpoint for posting a comment
  35. A successful refresh request
  36. A push state navigation event
  37. A user logs out
  38.  
  39. #What is OIDC?#
  40. Industry standard pro protocol called OpenID Connect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement