Course Content
Next.js 14
Next.js 14
4. Deployment and Database
Logout Functionality
The final feature we need to develop is logging out.
Back to the Project
To implement the logout feature within the <SideNav />
component, invoke the signOut
function from auth.ts
within your <form>
element:
Test it using the following credentials:
- mail:
user@mail.com
; - password:
123456
.
In Practice
Everything was clear?
Thanks for your feedback!
Section 7. Chapter 8