mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 01:12:15 +00:00
refactor: zitadel server
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { NewAuthorizationBearerInterceptor } from "@zitadel/client2";
|
||||
import {
|
||||
createGrpcWebTransport,
|
||||
GrpcTransportOptions,
|
||||
} from "@connectrpc/connect-node";
|
||||
// import {
|
||||
// createGrpcWebTransport,
|
||||
// GrpcWebTransportOptions,
|
||||
// } from "@connectrpc/connect-node";
|
||||
import { createGrpcWebTransport, GrpcWebTransportOptions } from "@connectrpc/connect-web";
|
||||
import { importPKCS8, SignJWT } from "jose";
|
||||
|
||||
/**
|
||||
@@ -12,7 +13,7 @@ import { importPKCS8, SignJWT } from "jose";
|
||||
*/
|
||||
export function createServerTransport(
|
||||
token: string,
|
||||
opts: GrpcTransportOptions,
|
||||
opts: GrpcWebTransportOptions,
|
||||
) {
|
||||
return createGrpcWebTransport({
|
||||
...opts,
|
||||
|
||||
Reference in New Issue
Block a user