mirror of
https://github.com/better-auth/better-auth.git
synced 2026-11-03 22:14:11 -06:00
chore: update import paths (#7003)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,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";
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
import type { JWSAlgorithms } from "better-auth/plugins/jwt";
|
||||
import type { JWSAlgorithms } from "better-auth/plugins";
|
||||
import type { Prompt } from ".";
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 "..";
|
||||
|
||||
Reference in New Issue
Block a user