Skip to content

affanahmedali/get_me_a_chai

Repository files navigation

About App

About authentication using AUTH.JS

  1. The auth.js at the root of the directory contains the functions/functionalities provided by Auth JS lib
  2. the functions used are signin, signout, handlers(for handling http requests such as GET and POST), and auth(contains session information/metadata such as username)
  3. The auth, signIn, signOut functions are added as the action to be performed on login page in the the sepcific (personally created {learned abot in another video}) file lib/actions/auth.js
  4. The handlers function is used in app\api\auth\[...nextauth]\route.js file
  5. The route.js file handles all the requests to /api/auth/* (meaning all the requests for authentications)
  6. The repo contains client side logs as well (for debugging), hence not suitable for production.

Note: The [...nextauth] part is a dynamic API route. In Next.js, square brackets ([...]) denote a catch-all route parameter

About

Patreon Clone. Where people can signup, create pages, monitise their content, or donate to other creators.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors