Kirbyasdf/deno-auth

Deno - auth using oak, djwt, bcrypt, nessie, postgres

current issues.......

my knowledge of typescript... I have alot of returns for ":Promise any" ...

Trying to determine best practice for deno w/ File organization

--userRepo... why can I not have private methods and only static methods?

-handle user interface better...I have password and pw_hash...

-handle state of ctx better... I feel there is vulenabilities I didnt consider and edge cases where state.user would not be null by accident and grant auth to bad reqs.

** TODO

implement .env and denon (nodemon =)

deno-auth

Deno - auth using Oak, djwt, bcrypt, nessie, postgres

(if you want to do migrations)

to run you'll need to create the database "nessie" localhost and then cd into the db and run

deno run --allow-net --allow-read https://deno.land/x/nessie/cli.ts migrate

TO START

-> deno run --allow-net --allow-env --unstable server.ts

-Post paths

http://localhost:4000/auth/register

http://localhost:4000/auth/login

-auth test path ( auth header with prefix: bearer)

http://localhost:4000/auth/privateRoute

-Get Paths for testing

(db connect test) http://localhost:4000/auth/test

http://localhost:4000/users/

http://localhost:4000/users/:id

deps

oak (framework)

https://github.com/oakserver/oak

djwt (json webtoken)

https://github.com/timonson/djwt

nessie (db migrations)

https://deno.land/x/nessie/

postgres client (db client)

https://github.com/buildondata/deno-postgres

Repo Not Found