Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social login at frontend #54

Merged
merged 6 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update
  • Loading branch information
haiphucnguyen committed Jan 18, 2025
commit 86e094c28a5b536edd631c409bdbb4eed7eca9ea
3 changes: 1 addition & 2 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import NextAuth from "next-auth";
import CredentialsProvider from "next-auth/providers/credentials";
import GoogleProvider from "next-auth/providers/google";

import { submitSocialToken } from "@/lib/actions/users.action";
import apiAuthSignIn from "@/lib/auth";
import { BASE_URL } from "@/lib/constants";
import { post } from "@/lib/actions/commons.action";
import { submitSocialToken } from "@/lib/actions/users.action";

export const { handlers, auth } = NextAuth({
providers: [
Expand Down
1 change: 0 additions & 1 deletion src/components/auth/login-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
import { Input } from "@/components/ui/input";
import { Separator } from "@/components/ui/separator";
import { ENABLE_SOCIAL_LOGIN } from "@/lib/constants";
import { submitSocialToken } from "@/lib/actions/users.action";

const formSchema = z.object({
email: z
Expand Down