Skip to content

Commit

Permalink
Merge pull request #279 from Roger13579/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
y0000ga authored Jun 23, 2024
2 parents 25ec773 + 223024b commit 0127bee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/controller/indexController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,19 @@ class IndexController extends BaseController {
return this.formatResponse(
CustomResponseType.OK_MESSAGE,
CustomResponseType.OK,
new LoginVo(authUser, accessToken, refreshToken),
{
specific_redirect_url:
process.env.MOVIE_GO_URL +
`?account=${authUser.account}&email=${authUser.email}&token=${accessToken}&refresh_token=${refreshToken}&accountType=${authUser.accountType.toString()}`,
},
);
} else {
return this.formatResponse(
CustomResponseType.GOOGLE_AUTH_ERROR_MESSAGE,
CustomResponseType.GOOGLE_AUTH_ERROR,
{
specific_redirect_url: process.env.MOVIE_GO_URL,
},
);
}
};
Expand Down

0 comments on commit 0127bee

Please sign in to comment.