Web Security

Display incognito / chrome private browser history / chrome history : -> run as administrator -> ipconfig/displaydns -> ipconfig/flushdns How to see and DELETE your

JWT With Apollo

1. install –save jsonwebtoken 2. import {sign} from ‘jsonwebtoken’ 3. login ()=> { const user = await User.findOne(email:email); const valid = await bcrypt.compare(password, user.password) const

CRUD Mongoose

CRUD Mongoose : https://zellwk.com/blog/mongoose/ Connecting to a database First, you need to download Mongoose. npm install mongoose –save You can connect to a database with

Paypal Integration

Intro To The Node.js PayPal REST SDK bradtraversy / node_paypal_sdk_sample – Git https://github.com/bradtraversy/node_paypal_sdk_sample/blob/master/app.js const express = require(‘express’); const ejs = require(‘ejs’); const paypal = require(‘paypal-rest-sdk’);

Handling Time Zone in JavaScript

Convert date to another timezone in JavaScript https://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript Handling Time Zone in JavaScript https://medium.com/@toastui/handling-time-zone-in-javascript-547e67aa842d#:~:text=In%20this%20scenario%2C%20you%20can,current%20time%20zone%20in%20minutes.&text=The%20return%20value%20of%20%2D540,minutes%20ahead%20of%20the%20target. var aestTime = new Date().toLocaleString(“en-US”, {timeZone: “Australia/Brisbane”}); console.log(‘AEST time: ‘+ (new

JWT

1. install –save jsonwebtoken 2. import {sign} from ‘jsonwebtoken’ 3. login ()=> { const user = await User.findOne(email:email); const valid = await bcrypt.compare(password, user.password) const

1 14 15 16 17 18 35