Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
NODE_ENV=development
PORT=3000

DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/node_auth

JWT_SECRET=super-secret-key
JWT_EXPIRES_IN=7d

APP_URL=http://localhost:3000

SMTP_HOST=127.0.0.1
SMTP_PORT=1025
SMTP_USER=test
SMTP_PASS=test
14 changes: 14 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
NODE_ENV=development
PORT=3000

DATABASE_URL=postgres://user:password@localhost:5432/node_auth

JWT_SECRET=super-secret-key
JWT_EXPIRES_IN=7d

APP_URL=http://localhost:3000

SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=example@example.com
SMTP_PASS=password
File renamed without changes.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ node_modules

# MacOS
.DS_Store

# env files
*.env
.env*
5 changes: 5 additions & 0 deletions cookies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.

#HttpOnly_localhost FALSE / FALSE 1770241509 token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiZW1haWwiOiJ0ZXN0MkBleGFtcGxlLmNvbSIsImlhdCI6MTc2OTYzNjcwOSwiZXhwIjoxNzcwMjQxNTA5fQ.viGk1GGeHmtNVNO_yokMoH_wkCFrt9SINCP_HhOKTHg
1 change: 1 addition & 0 deletions email.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"password":"NewPass123!","newEmail":"test2_new@example.com","confirmation":"test2_new@example.com"}
1 change: 1 addition & 0 deletions login.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"email":"test2@example.com","password":"NewPass123!"}
1 change: 1 addition & 0 deletions name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Test User Updated"}
Loading
Loading