Skip to content

Commit

Permalink
Changed some return types #44
Browse files Browse the repository at this point in the history
  • Loading branch information
raghunandanarava committed Jun 7, 2022
1 parent 28c8cff commit 42012c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/flows/flows.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable, Inject } from '@nestjs/common';
import { Inject, Injectable } from '@nestjs/common';
import { TokenService } from '../token/token.service';

@Injectable()
Expand All @@ -7,7 +7,6 @@ export class FlowsService {
private readonly tokenService: TokenService;

async clientCredentialsFlow(issuer_s: string) {
const accessToken = await this.tokenService.requestToken(issuer_s);
return accessToken;
return await this.tokenService.requestToken(issuer_s);
}
}
3 changes: 2 additions & 1 deletion src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export class UserService {
private readonly flowsService: FlowsService;

async login(loginUserDto: LoginUserDto): Promise<any> {
return await this.flowsService.clientCredentialsFlow(
const result = await this.flowsService.clientCredentialsFlow(
process.env.ISSUER_STRING,
);
return JSON.stringify(result.data);
}
}

0 comments on commit 42012c7

Please sign in to comment.