How to use JSON web tokens with Node.js ?

JSON Web Token (JWT) is an Internet Standard that is used for exchanging data between two parties in a secure manner. It can’t be easily hacked as it creates a digital signature with the secret key along with the HMAC algorithm). JWT Structure: JSON Web Tokens consist of three parts separated by dots (xxxxx.yyyyy.zzzzz), which are: Header: This… Continue reading How to use JSON web tokens with Node.js ?

The Sequelize include option

The Sequelize include option is commonly added in a model finder method (findOne(), findAll(), etc.)This option is used to add a JOIN clause to the generated SQL query, enabling you to retrieve data from multiple tables with one query.For example, suppose you have two related SQL tables named Cities and Countries.Each Cities row stores the information of which country it belongs to with the CountryId column as… Continue reading The Sequelize include option

Confirm a stripe PaymentIntent using node js

After the PaymentIntent is created, attach a payment method and confirm to continue the payment. Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment method requires additional authentication steps,the PaymentIntent will transition to the requires_action status and suggest… Continue reading Confirm a stripe PaymentIntent using node js