Skip to content

Auth Middleware #5

Description

@vikaspatil0021

Issue: the code for validating the session is getting repeated in all api routes

Integrate a middleware to validate the session on each API route.
Refer the Nextjs DOCS - https://nextjs.org/docs/app/building-your-application/routing/middleware

Test all API routes before PR and include a video of testing one or two apis

Expected output
All routes must validate the session before proceeding with further execution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions