@accounts/graphql-client
Advanced tools
Comparing version 0.2.2 to 0.3.0-alpha.a7f674f3
@@ -63,3 +63,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var loginMutation; | ||
var loginMutation, loginFields; | ||
return __generator(this, function (_a) { | ||
@@ -69,3 +69,10 @@ switch (_a.label) { | ||
loginMutation = graphql_1.createLoginMutation(this.options.userFieldsFragment); | ||
return [4, this.mutate(loginMutation, 'loginWithPassword', { user: user, password: password })]; | ||
loginFields = { password: password }; | ||
if (typeof user === 'string') { | ||
loginFields.user = user; | ||
} | ||
else { | ||
loginFields.userFields = user; | ||
} | ||
return [4, this.mutate(loginMutation, 'loginWithPassword', loginFields)]; | ||
case 1: return [2, _a.sent()]; | ||
@@ -72,0 +79,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var graphql_tag_1 = require("graphql-tag"); | ||
exports.resetPasswordMutation = (_a = ["\n mutation($token: String!, $newPassword: PasswordInput!) {\n resetPassword(token: $token, newPassword: $password)\n }\n"], _a.raw = ["\n mutation($token: String!, $newPassword: PasswordInput!) {\n resetPassword(token: $token, newPassword: $password)\n }\n"], graphql_tag_1.default(_a)); | ||
exports.resetPasswordMutation = (_a = ["\n mutation($token: String!, $newPassword: String!) {\n resetPassword(token: $token, newPassword: $newPassword)\n }\n"], _a.raw = ["\n mutation($token: String!, $newPassword: String!) {\n resetPassword(token: $token, newPassword: $newPassword)\n }\n"], graphql_tag_1.default(_a)); | ||
var _a; | ||
//# sourceMappingURL=reset-password.mutation.js.map |
{ | ||
"name": "@accounts/graphql-client", | ||
"version": "0.2.2", | ||
"version": "0.3.0-alpha.a7f674f3", | ||
"description": "GraphQL client transport for accounts", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27757
339
0