Simple Admin Auth Tutorial
Unanswered
Ant posted this in #help-forum
AntOP
Hey everyone,
I've recently seen a video tutorial of creating a simple admin auth where you can just use username/password hardcoded in the server and use cookies for the auth. Since the admin is only the user i dont think I need a 3rd party solution. However, I cant find the video or a similar tutorial. Anyone have a link for a tutorial like this that works on Next.js App Router ?
I've recently seen a video tutorial of creating a simple admin auth where you can just use username/password hardcoded in the server and use cookies for the auth. Since the admin is only the user i dont think I need a 3rd party solution. However, I cant find the video or a similar tutorial. Anyone have a link for a tutorial like this that works on Next.js App Router ?
3 Replies
AntOP
This looks like an option https://authjs.dev/getting-started/credentials-tutorial but is it really necessary ?
i made a quick minimal example in stackblitz for you:
https://stackblitz.com/edit/stackblitz-starters-3qfddq?file=app%2F_actions.ts
https://stackblitz.com/edit/stackblitz-starters-3qfddq?file=app%2F_actions.ts
