hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
206 stars 264 forks source link

[Fix]: Update Authentication to Use Backend and Implement Session Expiry #1517

Open ericogbekene opened 3 months ago

ericogbekene commented 3 months ago

Description

The frontend currently handles authentication without checking to manage session expiry. We need to update this so that authentication sessions have a defined expiry time.

Acceptance Criteria

  1. Backend Authentication: Modify the frontend to send authentication information to the backend for validation.
  2. Session Expiry: Add functionality to manage session expiry. This means users should be logged out or asked to log in again after their session ends.
  3. Error Handling: Handle any errors from authentication or expired sessions and display appropriate messages to the user.

Links

| FIGMA LINK

Images

image