mirror of
https://github.com/vercel/next-learn.git
synced 2026-07-02 00:54:19 +00:00
* Create .env.local.example * changes * Update page.tsx * Update definitions.ts * wip signin validation * fix validation in action * fix * remove import * change * update * change * added button state * improved UI --------- Co-authored-by: Steven Tey <stevensteel97@gmail.com>
10 lines
301 B
TypeScript
10 lines
301 B
TypeScript
import NextAuth from 'next-auth';
|
|
import { authConfig } from './auth.config';
|
|
|
|
export default NextAuth(authConfig).auth;
|
|
|
|
export const config = {
|
|
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
|
|
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
|
|
};
|