Click here to Skip to main content
15,887,464 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to authenticate an API in my NodeJS module. But I do not know how to actually make sure this is a valid key. I need this for some other functions which uses the Steam API.

What I have tried:

JavaScript
login = (apiKey) => {}
Posted
Updated 13-Jul-17 20:29pm

1 solution

To protect your APIs it is highly recommended to use oAuth authentication on your APIs which you need to protect. Standard oAuth authentication process can be followed by calling client apps to access the protected API resources. Also you can implement Basic Authentication on your APIs for which client apps will need to pass authentication details in the HTTP headers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900