refactoring: simplifying file names
This commit is contained in:
11
README.md
11
README.md
@@ -12,11 +12,6 @@
|
||||
# Authentication
|
||||
Authentication consists of the following parts:
|
||||
* `next-auth` boilerplate
|
||||
* `middleware.ts` = hooks-up `next-auth` into the page processing pipeline
|
||||
* `auth.config.ts` = defines how user session is to be checked and redirects anonymous user to login page
|
||||
* `auth.ts` = verifies user credentials during the log-in action (i.e. against a database)
|
||||
* exports `auth`, `signIn`, `signOut` actions
|
||||
* UI boilerplate
|
||||
* `sidenav.tsx` = implements logout action - calls `signOut` from `auth.ts`
|
||||
* `login-form.tsx` = implements login form
|
||||
* `actions.ts` = handles login-form validation and submition - calls `signIn` from `auth.ts`
|
||||
* `middleware.ts` = hooks-up `next-auth` into the page processing pipeline - user session is checked before any page is rendered
|
||||
* `auth.ts` = defines how the authentication is done, and how session is checked (used by middleware)
|
||||
* `/app/api/[...nextauth]/route.ts` = defines route which shows an authentication form
|
||||
|
||||
Reference in New Issue
Block a user