0

I have used Express nodejs to Create Rest API from Mysql which will be invoked by an front end javascript application. As the Rest service that are created is open I need some approach to authenticate such as passing username/token

Any help would be appreciated

Thanks

1 Answer 1

3

You Could use jwt tokens for authentication.

You can look at this example on scotch.io jwt auth

hope this will help you.

Sign up to request clarification or add additional context in comments.

2 Comments

thanks for the response the article suggests the authentication with backend as mongo but as a beginner and with mysql as a backend for me could you share some links with mysql with express authentication
please take look at this vivavivugeek.blogspot.com/2016/09/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.