Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiet1618 committed Nov 22, 2023
1 parent e1d921e commit 129aa76
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 613 deletions.
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,13 @@
"@nestjs/core": "^9.0.0",
"@nestjs/mongoose": "^10.0.2",
"@nestjs/platform-express": "^9.0.0",
"@toruslabs/eccrypto": "^4.0.0",
"axios": "^1.6.2",
"bn.js": "^5.2.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"elliptic": "^6.5.4",
"gaxios": "^6.1.1",
"google-auth-library": "^9.2.0",
"json-stable-stringify": "^1.1.0",
"keccak": "^3.0.4",
"mongoose": "^8.0.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0",
"secp256k1": "^5.0.0",
"web3-utils": "^4.0.7"
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@nestjs/cli": "^9.0.0",
Expand Down
3 changes: 1 addition & 2 deletions src/controllers/oauth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { GetTokenResponse } from "google-auth-library/build/src/auth/oauth2clien
import { SocialUserService, UserService, WalletService } from "src/services";
import { SocialUser, User } from "src/schemas";
import { verifyAccessToken } from "src/auth/google.verifier";
import { getPrivateKey, GetPrivateKeyRequest } from "src/utils";

@Controller("api/v1/oauth")
export class OauthController {
Expand Down Expand Up @@ -38,7 +37,7 @@ export class OauthController {
const { access_token } = tokens;
const user: User = await verifyAccessToken(`Bearer ${access_token}`);
const existedUser = await this.userService.findUserById(user.id);
const input: GetPrivateKeyRequest = {
const input = {
idToken: access_token,
owner: user.email,
verifier: "google"
Expand Down
1 change: 0 additions & 1 deletion src/utils/index.ts

This file was deleted.

48 changes: 0 additions & 48 deletions src/utils/wallet/algorithm/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/utils/wallet/index.ts

This file was deleted.

226 changes: 0 additions & 226 deletions src/utils/wallet/proxy-wallet.ts

This file was deleted.

42 changes: 0 additions & 42 deletions src/utils/wallet/types.ts

This file was deleted.

Loading

0 comments on commit 129aa76

Please sign in to comment.