Redploy back
This commit is contained in:
parent
14f07b4475
commit
138f7e2407
@ -43,6 +43,7 @@ export default class UserController extends ApiController {
|
|||||||
if (!id) throw new Error("idnot is required");
|
if (!id) throw new Error("idnot is required");
|
||||||
|
|
||||||
const payload = await this.authService.getUserJwtPayload(id!);
|
const payload = await this.authService.getUserJwtPayload(id!);
|
||||||
|
|
||||||
const accessToken = this.authService.generateAccessToken(payload);
|
const accessToken = this.authService.generateAccessToken(payload);
|
||||||
const refreshToken = this.authService.generateRefreshToken(payload);
|
const refreshToken = this.authService.generateRefreshToken(payload);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user