Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yacoubii authored Oct 10, 2020
1 parent c35c026 commit 9f729ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Command used (windows): set authService_jwtPrivateKey=example
## Description
This authentification service api has three endpoints:

1- /register that can register a user with email, username and password. It returns "User already registered." message if the user is already registered, otherwise it returns the whole user object ('_id','username','email').
1- /auth/register that can register a user with email, username and password. It returns "User already registered." message if the user is already registered, otherwise it returns the whole user object ('_id','username','email').

2- /login that returns a token if the login if successful. An error message otherwise.
2- /auth/login that returns a token if the login if successful. An error message otherwise.

3- /isAuthenticated that tests if the user is authenticated or not. You should provide the token in the headers with the attribute 'x-auth-token' as shown in the screenshot below.
3- /auth/isAuthenticated that tests if the user is authenticated or not. You should provide the token in the headers with the attribute 'x-auth-token' as shown in the screenshot below.

Screenshot: https://imgur.com/a/5HXKhOw

0 comments on commit 9f729ee

Please sign in to comment.