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
82 changes: 82 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Common settings that generally should always be used with your language specific settings


*.html linguist-vendored=true
*.ipynb linguist-vendored=true

# Linguist::FileBlob.new("./*.html").vendored? # => true
# Auto detect text files and perform LF normalization
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto

#
# The above will handle all files NOT found below
#

# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.txt text
*.sql text
*.ps1 text eol=crlf

# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.eps binary

# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf

# Serialisation
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary

# Text files where line endings should be preserved
*.patch -text

#
# Exclude files from exporting
#
72 changes: 0 additions & 72 deletions api/auth/auth-middleware.js

This file was deleted.

42 changes: 0 additions & 42 deletions api/auth/auth-router.js

This file was deleted.

11 changes: 0 additions & 11 deletions api/secrets/index.js

This file was deleted.

92 changes: 0 additions & 92 deletions api/users/users-model.js

This file was deleted.

Binary file removed data/auth.db3
Binary file not shown.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ module.exports = {

// Whether to use watchman for file crawling
// watchman: true,
};
};
5 changes: 5 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
git:
git add .
git commit -m "$m-update"
git push -u origin bryan-guner
# just type make into the terminal to exicute these commands!
6 changes: 6 additions & 0 deletions notes/commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```sh
git init
git add .
git commit -m"update"
git push -u origin bryan-guner
```
29 changes: 29 additions & 0 deletions notes/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Parts of a token

header
payload
subject
name
issues
verify signature

base 64 encoded

> Tokens CAN be encrypted

> Tokens can be larger than cookies

> Tokens are Client side

- client does most of work

> Sessions are server side

## Install JSON Web Token

[] npm i jsonwebtoken\

## Install bcrypt

https://www.npmjs.com/package/bcrypt
[] npm install bcrypt
Binary file added notes/session-vs-token-auth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading