Skip to content

Instantly share code, notes, and snippets.

View DanielMolina33's full-sized avatar

Jose Daniel Molina DanielMolina33

View GitHub Profile
@DanielMolina33
DanielMolina33 / seedApiKeys.js
Last active August 25, 2020 19:03
These are the scripts for passport.js course at Platzi, put this files in /scripts/mongo
// DEBUG=app:* node scripts/mongo/seedApiKeys.js
const chalk = require('chalk');
const crypto = require('crypto');
const debug = require('debug')('app:scripts:api-keys');
const MongoLib = require('../../lib/mongo');
const adminScopes = [
'signin:auth',
'signup:auth',
@DanielMolina33
DanielMolina33 / verbos.md
Created August 1, 2020 18:50
HTTP verbs

HTTP status code

Los estados nos indican justamente cual es el estado de una solicitud, si es correcta, rechazada o algo más.

1xx

Este estado nos indica que la solicitud está siendo procesada por el servidor, sin llegar aun a ser exitosa o erronea.

2xx