Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions linkando-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion linkando-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@hookform/resolvers": "^5.1.1",
"axios": "^1.11.0",
"next": "^15.4.1",
"next": "^15.4.5",
"next-auth": "^4.24.11",
"react": "^19.1.0",
"react-dom": "^19.1.0",
Expand Down
1 change: 0 additions & 1 deletion linkando-frontend/src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ import NextAuth from "next-auth";
import { authOptions } from "../../../../lib/auth";

const handler = NextAuth(authOptions);

export { handler as GET, handler as POST };
12 changes: 6 additions & 6 deletions linkando-frontend/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export const authOptions: NextAuthOptions = {
}),
],
pages: {
signIn: "/", // Tela de login
signOut: "/", // Após logout
error: "/?error=true", // Caso ocorra erro
newUser: "/dashboard", // Primeira vez logado
signIn: "/",
signOut: "/",
error: "/?error=true",
newUser: "/dashboard",
},
callbacks: {
async redirect({ url, baseUrl }) {
return `${baseUrl}/dashboard`; // Sempre vai pra dashboard após login
async redirect({ baseUrl }) {
return `${baseUrl}/dashboard`;
},
},
secret: process.env.NEXTAUTH_SECRET,
Expand Down