Skip to content

Releases: waqasraza123/crypto-twitter-backend

User Authentication & Authorization

21 Nov 11:39
Compare
Choose a tag to compare

This release is a step forward that completes authentication with email, password and jwt tokens.

auth/register =>

Registers the user with email, password, ...., and generates JWT tokens and saves them against the user model.

auth/login
Check if the user credentials (email, password) are present in the database
generates new tokens

auth/logout
finds the user with email & deletes the token from user model/database.
without the tokens, access is revoked from the REST APIs on our server.

JWT Authentication

20 Nov 21:40
Compare
Choose a tag to compare

This release implements jwt authentication on all routes. So, an incoming request to the server must pass
Bearer Token

Example:

await axios.create({
  baseURL: 'https://example.com/api/',
  timeout: 1000,
  ....,
  headers: {'Authorization': 'Bearer '+token}
});

Crud v0.1

19 Nov 14:58
Compare
Choose a tag to compare

Has user crud implemented with REST APIs.
get /users = returns all users
post /users = creates the user with incoming data
get /users/user = returns one user {email is required}
patch /users/user = updates a user {email and new data is required}
delete /users/user = deletes a user {email is required}

Full Changelog: https://github.com/waqasraza123/mini-crypto-exchange-backend/commits/crud-v0.1