Next.js Discord

Discord Forum

Amplify Auth Cognito next.js

Unanswered
Gouty oak gall posted this in #help-forum
Open in Discord
Gouty oak gallOP
In my Next.js app, I’ve manually set up the Cognito User Pool, App Client, and external identity providers in the AWS Console. I don’t want to use Amplify’s pre-built UI and plan to use my own login forms. I can use Amplify Auth functions to sign in users and get their sessions, but I have no idea how to implement middleware or server-side logic to protect routes like /dashboard. Does Amplify provide all the tools I need for session validation and route protection without its UI, or do I need to implement additional logic myself? Mx

1 Reply