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