@usecapsule/user-management-client
Advanced tools
Comparing version 0.20.0-dev.6 to 0.20.0-dev.7
@@ -275,2 +275,14 @@ import axios, { AxiosInstance, AxiosRequestHeaders, AxiosResponseHeaders, InternalAxiosRequestConfig } from 'axios'; | ||
// POST /touch/twitter | ||
touchTwitter = async (): Promise<any> => { | ||
const res = await this.baseRequest.post<any>(`/touch/twitter`); | ||
return res; | ||
} | ||
// POST /init/twitter | ||
initTwitter = async (): Promise<any> => { | ||
const res = await this.baseRequest.post<any>(`/init/twitter`); | ||
return res; | ||
} | ||
// POST /biometrics/verify | ||
@@ -277,0 +289,0 @@ verifyWebChallenge = async (body: verifyWebChallengeBody): Promise<any> => { |
@@ -121,2 +121,4 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
initGoogle: () => Promise<any>; | ||
touchTwitter: () => Promise<any>; | ||
initTwitter: () => Promise<any>; | ||
verifyWebChallenge: (body: verifyWebChallengeBody) => Promise<any>; | ||
@@ -123,0 +125,0 @@ getSessionChallenge: (userId: string) => Promise<any>; |
@@ -216,2 +216,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}); }; | ||
// POST /touch/twitter | ||
this.touchTwitter = function () { return __awaiter(_this, void 0, void 0, function () { | ||
var res; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.baseRequest.post("/touch/twitter")]; | ||
case 1: | ||
res = _a.sent(); | ||
return [2 /*return*/, res]; | ||
} | ||
}); | ||
}); }; | ||
// POST /init/twitter | ||
this.initTwitter = function () { return __awaiter(_this, void 0, void 0, function () { | ||
var res; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.baseRequest.post("/init/twitter")]; | ||
case 1: | ||
res = _a.sent(); | ||
return [2 /*return*/, res]; | ||
} | ||
}); | ||
}); }; | ||
// POST /biometrics/verify | ||
@@ -218,0 +242,0 @@ this.verifyWebChallenge = function (body) { return __awaiter(_this, void 0, void 0, function () { |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "0.20.0-dev.6", | ||
"version": "0.20.0-dev.7", | ||
"main": "dist/client.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/client.d.ts", |
Sorry, the diff of this file is not supported yet
80487
1574