chore: update import paths (#7003)

This commit is contained in:
Dylan Vanmali
2025-12-31 21:36:19 +08:00
committed by Alex Yang
parent c128d4c8e6
commit 337a5bf003
6 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import type { GenericEndpointContext } from "@better-auth/core";
import type { JWSAlgorithms, JwtOptions } from "better-auth/plugins/jwt";
import type { JWSAlgorithms, JwtOptions } from "better-auth/plugins";
import type { OAuthOptions, Scope } from "./types";
import type {
AuthServerMetadata,
+3 -1
View File
@@ -149,7 +149,9 @@ export const oauthProvider = <O extends OAuthOptions<Scope[]>>(options: O) => {
init: (ctx) => {
// Require session id storage on database (secondary-storage only solution not yet supported)
if (ctx.options.session && !ctx.options.session.storeSessionInDatabase) {
throw new BetterAuthError("sessions must be stored on database");
throw new BetterAuthError(
"OAuth Provider requires `session.storeSessionInDatabase: true` when using secondaryStorage",
);
}
// Check for jwt plugin registration
+1 -1
View File
@@ -1,7 +1,7 @@
import type { GenericEndpointContext } from "@better-auth/core";
import { APIError, getSessionFromCtx } from "better-auth/api";
import { generateRandomString } from "better-auth/crypto";
import { toExpJWT } from "../../better-auth/src/plugins/jwt/utils";
import { toExpJWT } from "better-auth/plugins";
import type { OAuthOptions, SchemaClient, Scope } from "./types";
import type { OAuthClient } from "./types/oauth";
import { storeClientSecret } from "./utils";
+1 -1
View File
@@ -2,7 +2,7 @@ import type { GenericEndpointContext } from "@better-auth/core";
import { APIError } from "better-auth/api";
import { generateRandomString } from "better-auth/crypto";
import { generateCodeChallenge } from "better-auth/oauth2";
import { signJWT, toExpJWT } from "better-auth/plugins/jwt";
import { signJWT, toExpJWT } from "better-auth/plugins";
import type { Session, User } from "better-auth/types";
import type { JWTPayload } from "jose";
import { SignJWT } from "jose";
+1 -1
View File
@@ -1,4 +1,4 @@
import type { JWSAlgorithms } from "better-auth/plugins/jwt";
import type { JWSAlgorithms } from "better-auth/plugins";
import type { Prompt } from ".";
/**
+1 -1
View File
@@ -7,7 +7,7 @@ import {
symmetricDecrypt,
symmetricEncrypt,
} from "better-auth/crypto";
import type { jwt } from "better-auth/plugins/jwt";
import type { jwt } from "better-auth/plugins";
import type { Auth } from "better-auth/types";
import { APIError } from "better-call";
import type { oauthProvider } from "..";