摘要:
The advantage of RS256 over HS256 is RS256 no longer need to share the secret key between client and server side. To create a token, we need to privat 阅读全文
摘要:
Here we want to test a toggle button component, when the button was click, state should change, style should change also. Toggle component: Test: 阅读全文
摘要:
For example we have a React comonent: -- A toggle button, we want to test. When it si toggle on, the color is a little bit darken than it's not. Testi 阅读全文
摘要:
For intergration tests, always remember when you create a 'mass' you should aslo clean up the 'mass'. For example when you start the server, you need 阅读全文
摘要:
We have express app: As you can see, we wrap Express App into a function 'startServer' and export it as default export. The return value of this funct 阅读全文
摘要:
Stateful session management: Store session which associate with user, and store in the menory on server. Sign Up: Password validation: Random bytes ge 阅读全文
摘要:
In this lesson we will find out how to serve static assets (images, css, stylesheets, etc.) with Express. We will go over writing initial boilerplate 阅读全文
摘要:
The advantages of JWT over traditional session based validation is: it effectively removing all authentication logic from both our codebase and our da 阅读全文
摘要:
Higher Order Reducers are simple reducer factories, that take a reducer as an argument and return a new reducer. In that new reducer, you can customiz 阅读全文