mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-28 09:56:25 -05:00
fix: rename signIn OAuth to social
This commit is contained in:
@@ -15,7 +15,7 @@ import {
|
||||
sendVerificationEmail,
|
||||
changeEmail,
|
||||
signInEmail,
|
||||
signInOAuth,
|
||||
signInSocial,
|
||||
signOut,
|
||||
verifyEmail,
|
||||
linkSocialAccount,
|
||||
@@ -84,7 +84,7 @@ export function getEndpoints<
|
||||
.flat() || [];
|
||||
|
||||
const baseEndpoints = {
|
||||
signInOAuth,
|
||||
signInSocial,
|
||||
callbackOAuth,
|
||||
getSession: getSession<Option>(),
|
||||
signOut,
|
||||
|
||||
@@ -6,11 +6,10 @@ import { socialProviderList } from "../../social-providers";
|
||||
import { createEmailVerificationToken } from "./email-verification";
|
||||
import { generateState, logger } from "../../utils";
|
||||
|
||||
export const signInOAuth = createAuthEndpoint(
|
||||
export const signInSocial = createAuthEndpoint(
|
||||
"/sign-in/social",
|
||||
{
|
||||
method: "POST",
|
||||
requireHeaders: true,
|
||||
query: z
|
||||
.object({
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user