Token 썸네일형 리스트형 [Postman] Example of Pre-request Script When I was doing a project to make REST API Client, I had to make access token before request REST API.If the access token were expired, refreshing access token process was very bothersome process..When I using Postman to testing my REST API, I could make this authentication process to automatically with pre-request script.And easily access the authorization token with environment variables.. He.. 더보기 Add authorization header in ajax with axios Add authorization header in ajax process. const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MvXC9yZW5ld9fQ.hGyUlcvaRfLhiaaQAqQg'; const authorization = `JWT ${token}`; axios.defaults.headers.common["authorization"] = authorization; const authCodeResult = await axios.post() 더보기 Use JWT with public-key cryptography The JWT token is useful for systems that require lightweight authentication methods. I used this for login on web site.Web is public data storage differ from native application so anyone can see the data if they want.That means, anyone can get there tokens and modified if they want. To prevent this, use the JWT token.If you want to know aboud JWT token detail, see https://en.wikipedia.org/wiki/J.. 더보기 이전 1 2 다음