mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-11 18:52:29 +00:00
fix: use grpc client
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { NewAuthorizationBearerInterceptor } from "@zitadel/client2";
|
||||
import {
|
||||
createGrpcWebTransport,
|
||||
GrpcWebTransportOptions,
|
||||
createGrpcTransport,
|
||||
GrpcTransportOptions,
|
||||
} from "@connectrpc/connect-node";
|
||||
// import { createGrpcWebTransport, GrpcWebTransportOptions } from "@connectrpc/connect-web";
|
||||
import { importPKCS8, SignJWT } from "jose";
|
||||
|
||||
/**
|
||||
@@ -13,9 +12,9 @@ import { importPKCS8, SignJWT } from "jose";
|
||||
*/
|
||||
export function createServerTransport(
|
||||
token: string,
|
||||
opts: GrpcWebTransportOptions,
|
||||
opts: GrpcTransportOptions,
|
||||
) {
|
||||
return createGrpcWebTransport({
|
||||
return createGrpcTransport({
|
||||
...opts,
|
||||
interceptors: [
|
||||
...(opts.interceptors || []),
|
||||
|
||||
Reference in New Issue
Block a user