Skip to content

Commit

Permalink
Remove respondWithAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Apr 24, 2024
1 parent 83c8fff commit f090bf3
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 3,332 deletions.
2 changes: 1 addition & 1 deletion client/dist/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
function generateId() {
return crypto.getRandomValues(new Uint32Array(1))[0].toString(16);
}
function createRequest({ method , params , isNotification =false , id }) {
function createRequest({ method, params, isNotification = false, id }) {
const rpcRequest = {
jsonrpc: "2.0",
method
Expand Down
4 changes: 2 additions & 2 deletions server/auth.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { authErrorData } from "./error_data.ts";
import { getJwtFromBearer, type Payload } from "./deps.ts";
import { type CreationInput } from "./creation.ts";
import { type AuthInput } from "./response.ts";
import { type AuthInputAndVerify } from "./response.ts";

export type AuthData = AuthInput & { headers: Headers };
export type AuthData = AuthInputAndVerify & { headers: Headers };

export async function verifyJwtForSelectedMethods(
{ validationObject, methods, options, authData }: CreationInput & {
Expand Down
4 changes: 2 additions & 2 deletions server/deps.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export {
type Payload,
type VerifyOptions,
} from "https://dev.zaubrik.com/[email protected].1/mod.ts";
} from "https://dev.zaubrik.com/[email protected].2/mod.ts";

export {
type CryptoKeyOrUpdateInput,
getJwtFromBearer,
verifyJwt,
} from "https://dev.zaubrik.com/[email protected].6/functions/mod.ts";
} from "https://dev.zaubrik.com/[email protected].7/functions/mod.ts";
Loading

0 comments on commit f090bf3

Please sign in to comment.