Skip to content

Commit

Permalink
Fix auth to import from protos correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthecoder committed Jan 22, 2024
1 parent 3aa39b2 commit cba1769
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions packages/auth-service/src/modules/jwt/jwt.controller.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
import { Controller } from '@nestjs/common';
import {
CreateJwtRequest,
CreateJwtResponse,
JwtServiceController,
JwtServiceControllerMethods,
ValidateJwtRequest,
ValidateJwtResponse,
} from 'juno-proto/src/gen/jwt';
import { JwtProto } from 'juno-proto';

@Controller('jwt')
@JwtServiceControllerMethods()
export class JWTController implements JwtServiceController {
async createJwt(request: CreateJwtRequest): Promise<CreateJwtResponse> {
@JwtProto.JwtServiceControllerMethods()
export class JWTController implements JwtProto.JwtServiceController {
async createJwt(
request: JwtProto.CreateJwtRequest,
): Promise<JwtProto.CreateJwtResponse> {
console.log(`request: ${request}`);
return {};
}
validateJwt(request: ValidateJwtRequest): Promise<ValidateJwtResponse> {
validateJwt(
request: JwtProto.ValidateJwtRequest,
): Promise<JwtProto.ValidateJwtResponse> {
console.log(`request: ${request}`);
throw new Error('Method not implemented.');
}
Expand Down

0 comments on commit cba1769

Please sign in to comment.