mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 08:36:01 +00:00
fix schema import path
This commit is contained in:
@@ -8,7 +8,7 @@ import type { CookieOptions } from "hono/utils/cookie";
|
||||
import type { ServerEnv } from "modules/Controller";
|
||||
import { pick } from "lodash-es";
|
||||
import { InvalidConditionsException } from "auth/errors";
|
||||
import { s, parse, secret } from "core/object/schema";
|
||||
import { s, parse, secret } from "bknd/core";
|
||||
|
||||
type Input = any; // workaround
|
||||
export type JWTPayload = Parameters<typeof sign>[0];
|
||||
|
||||
@@ -3,7 +3,7 @@ import { hash, $console } from "core/utils";
|
||||
import { Hono } from "hono";
|
||||
import { compare as bcryptCompare, genSalt as bcryptGenSalt, hash as bcryptHash } from "bcryptjs";
|
||||
import { Strategy } from "./Strategy";
|
||||
import { s, parse, jsc } from "core/object/schema";
|
||||
import { s, parse, jsc } from "bknd/core";
|
||||
|
||||
const schema = s
|
||||
.object({
|
||||
|
||||
@@ -5,7 +5,7 @@ import type {
|
||||
StrategyActions,
|
||||
} from "../Authenticator";
|
||||
import type { Hono } from "hono";
|
||||
import { type s, parse } from "core/object/schema";
|
||||
import { type s, parse } from "bknd/core";
|
||||
|
||||
export type StrategyMode = "form" | "external";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type * as oauth from "oauth4webapi";
|
||||
import { OAuthStrategy } from "./OAuthStrategy";
|
||||
import { s } from "core/object/schema";
|
||||
import { s } from "bknd/core";
|
||||
|
||||
type SupportedTypes = "oauth2" | "oidc";
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { getSignedCookie, setSignedCookie } from "hono/cookie";
|
||||
import * as oauth from "oauth4webapi";
|
||||
import * as issuers from "./issuers";
|
||||
import { Strategy } from "auth/authenticate/strategies/Strategy";
|
||||
import { s } from "core/object/schema";
|
||||
import { s } from "bknd/core";
|
||||
|
||||
type ConfiguredIssuers = keyof typeof issuers;
|
||||
type SupportedTypes = "oauth2" | "oidc";
|
||||
|
||||
Reference in New Issue
Block a user