@simpleview/sv-auth-client 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleview/sv-auth-client",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Client for communicating with sv-auth",
5
5
  "author": "Owen Allen <owenallenaz@gmail.com>",
6
6
  "dependencies": {
@@ -255,6 +255,26 @@ class AuthPrefix {
255
255
  return result.auth.login_google;
256
256
  }
257
257
 
258
+ async login_microsoft({ token, fields }) {
259
+ const result = await query({
260
+ query : `
261
+ query($token: String!) {
262
+ auth {
263
+ login_microsoft(token: $token) {
264
+ ${fields}
265
+ }
266
+ }
267
+ }
268
+ `,
269
+ variables : {
270
+ token
271
+ },
272
+ url : this._graphUrl
273
+ });
274
+
275
+ return result.auth.login_microsoft;
276
+ }
277
+
258
278
  async login_service_account({ input, fields }) {
259
279
  const result = await query({
260
280
  query : `