mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-16 12:59:08 +00:00
FIX: send accessToken in refresh token endpoint
This commit is contained in:
@@ -104,7 +104,7 @@ export class AuthController {
|
||||
@Headers('origin') origin: string,
|
||||
) {
|
||||
this.logger.info('/auth - RefreshAccessToken');
|
||||
const { refreshToken, customerName: customer_name } = body;
|
||||
const { refreshToken, customerName: customer_name, accessToken } = body;
|
||||
const frontHost = origin.replace(/^https?:\/\//, '');
|
||||
const metadata = PackTheMetadata({
|
||||
language,
|
||||
@@ -112,7 +112,7 @@ export class AuthController {
|
||||
custom_host: frontHost,
|
||||
});
|
||||
|
||||
return this.authClient.refreshAccessToken({ refreshToken }, metadata);
|
||||
return this.authClient.refreshAccessToken({ refreshToken, accessToken }, metadata);
|
||||
}
|
||||
|
||||
@ApiInternalOnlyEndpoint()
|
||||
|
||||
Reference in New Issue
Block a user