Message from JavaScript discussions

September 2020

— Hi guys


I'm on an FCC #javascript project and the solution I came up with is not passing one test ..been on it for a while now 😪

I would like if it could be fixed while maintaining the concept or method I have started with...would like to know what's wrong.

Here's a repl... thank you

— The link to the question

Message permanent page

— Why we should use only POST method for login API requests ?

[ Asked in an interview ]

— 2. How to avoid the following conflict.

Whenever we logged in,we will get a JWT from backend.

And if we shared the token to our friend,and if out friend stored the token in local storage even he can access the same session as ours.

How to resolve this conflict ?

Message permanent page

— No idea, actually

— I switched to get recently

— How do i make page transitions without using libraries ?

— Understand how the libraries do it internally, then implement it yourself

— Any suggestions for library?

— What are u using, vanilla js?

— To hide sensitive data, like password, imo API should use only POSTs and response status should always be 200 OK

Message permanent page