diff --git a/containers/api/src/app.controller.ts b/containers/api/src/app.controller.ts index c5c60ace..f71d4eb5 100644 --- a/containers/api/src/app.controller.ts +++ b/containers/api/src/app.controller.ts @@ -285,7 +285,7 @@ export class AppController { const token = (await data).access_token; // console await this.userService.save(user); - return { url: `http://localhost/token?data=${encodeURIComponent(JSON.stringify(token))}` }; + return { url: 'http://' + process.env.BASE_URL + 'localhost/token?data=${encodeURIComponent(JSON.stringify(token))}' }; } @UseGuards(JwtAuthGuard)