Merge branch 'hotfix/refresh-token-contract' into fix/create-partial-input

This commit is contained in:
Arthur Simas
2022-05-27 15:25:00 -03:00
4 changed files with 12 additions and 15 deletions
+2 -2
View File
@@ -57,12 +57,12 @@ export class AuthController {
@Post('refresh-access-token')
@HttpCode(HttpStatus.OK)
async refreshAccessToken(
@Body() { username, refreshToken }: AuthRefreshAccessTokenRequest,
@Body() { refreshToken }: AuthRefreshAccessTokenRequest,
) {
console.log(`/auth`, 'RefreshAccessToken');
const accessToken = await this.authClient
.refreshAccessToken({ username, refreshToken })
.refreshAccessToken({ refreshToken })
.catch((err) => {
throw ErrorBuilder(err);
});