Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Implementing Logout Functionality | Implementing Authentication in Next.js
Next.js 14 Mastery for Building Modern Web Apps

bookImplementing 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

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 7. Kapitel 8

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Awesome!

Completion rate improved to 2.08

bookImplementing Logout Functionality

Stryg for at vise menuen

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

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 7. Kapitel 8
some-alt