I am working on an API that I need to require an auth token that is generated once and then is not shown to the user again. I know of JWT but was thinking that it might not be the best because everything I have found on it seems to point to it being used for web applications that have a UI. Not sure how well that would work for me.Here is an example of a pseudo code curl command of what I want it to becurl -H "Auth-token: 12345ABCD" -d payload.json https://api.mydomain.com/v1/event/createHow could I best do this with node and express? Any packages that solve the problem or a guide that might give me ideas?
Submitted December 18, 2018 at 10:14PM by jsdfkljdsafdsu980p
No comments:
Post a Comment