Path: blob/main/components/public-api/go/v1/v1connect/token.proxy.connect.go
2501 views
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-proxy-gen. DO NOT EDIT.56package v1connect78import (9context "context"10connect_go "github.com/bufbuild/connect-go"11v1 "github.com/gitpod-io/gitpod/components/public-api/go/v1"12)1314var _ TokenServiceHandler = (*ProxyTokenServiceHandler)(nil)1516type ProxyTokenServiceHandler struct {17Client v1.TokenServiceClient18UnimplementedTokenServiceHandler19}2021func (s *ProxyTokenServiceHandler) CreateTemporaryAccessToken(ctx context.Context, req *connect_go.Request[v1.CreateTemporaryAccessTokenRequest]) (*connect_go.Response[v1.CreateTemporaryAccessTokenResponse], error) {22resp, err := s.Client.CreateTemporaryAccessToken(ctx, req.Msg)23if err != nil {24// TODO(milan): Convert to correct status code25return nil, err26}2728return connect_go.NewResponse(resp), nil29}303132