mirror of
https://github.com/better-auth/better-auth.git
synced 2026-07-22 11:49:20 -05:00
chore: remove out-dated client: false (#6243)
This commit is contained in:
@@ -15,7 +15,6 @@ export function deleteAllExpiredApiKeysEndpoint({
|
||||
method: "POST",
|
||||
metadata: {
|
||||
SERVER_ONLY: true,
|
||||
client: false,
|
||||
},
|
||||
},
|
||||
async (ctx) => {
|
||||
|
||||
@@ -24,6 +24,7 @@ import { setSessionCookie } from "../../cookies";
|
||||
import { handleOAuthUserInfo } from "../../oauth2/link-account";
|
||||
import { generateState, parseState } from "../../oauth2/state";
|
||||
import type { User } from "../../types";
|
||||
import { HIDE_METADATA } from "../../utils";
|
||||
import { GENERIC_OAUTH_ERROR_CODES } from "./error-codes";
|
||||
|
||||
export * from "./providers";
|
||||
@@ -641,7 +642,7 @@ export const genericOAuth = (options: GenericOAuthOptions) => {
|
||||
.optional(),
|
||||
}),
|
||||
metadata: {
|
||||
client: false,
|
||||
...HIDE_METADATA,
|
||||
allowedMediaTypes: [
|
||||
"application/x-www-form-urlencoded",
|
||||
"application/json",
|
||||
|
||||
@@ -16,6 +16,7 @@ import * as z from "zod";
|
||||
import { APIError, getSessionFromCtx } from "../../api";
|
||||
import { parseSetCookieHeader } from "../../cookies";
|
||||
import { generateRandomString } from "../../crypto";
|
||||
import { HIDE_METADATA } from "../../utils";
|
||||
import { getBaseURL } from "../../utils/url";
|
||||
import type {
|
||||
Client,
|
||||
@@ -191,7 +192,7 @@ export const mcp = (options: MCPOptions) => {
|
||||
{
|
||||
method: "GET",
|
||||
metadata: {
|
||||
client: false,
|
||||
...HIDE_METADATA,
|
||||
},
|
||||
},
|
||||
async (c) => {
|
||||
@@ -209,7 +210,7 @@ export const mcp = (options: MCPOptions) => {
|
||||
{
|
||||
method: "GET",
|
||||
metadata: {
|
||||
client: false,
|
||||
...HIDE_METADATA,
|
||||
},
|
||||
},
|
||||
async (c) => {
|
||||
|
||||
@@ -60,7 +60,6 @@ export const passkey = (options?: PasskeyOptions | undefined) => {
|
||||
})
|
||||
.optional(),
|
||||
metadata: {
|
||||
client: false,
|
||||
openapi: {
|
||||
operationId: "generatePasskeyRegistrationOptions",
|
||||
description: "Generate registration options for a new passkey",
|
||||
|
||||
Reference in New Issue
Block a user