Skip to content

bryankle/crypto_app

Repository files navigation

Authentication - back end authentication boilerplate notes

  • Start PostgreSQL database
  • To create user
    • POST request to http://localhost:3001/signup
    • example:
      • { email: "test@gmail.com", password: "test" }
      • Success will create user record on database and assign user token for future auth
      • Fail will prompt error "User already exists"
  • Signing in
  • Visiting when authenticated
    • GET request to http://localhost:3001/ (root)
      • Access allowed if header of 'authorization' contains a token
      • Access denied otherwise

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published