jr-common-micro 1.1.109 → 1.1.110

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.
@@ -11,6 +11,8 @@ export interface LoginRequest {
11
11
  }
12
12
  export interface GoogleRequest {
13
13
  email: string;
14
+ id_token: string;
15
+ access_token: string;
14
16
  }
15
17
  export interface AppleRequest {
16
18
  identity_token: string;
@@ -28,6 +28,8 @@ export declare class LoginRequest extends Message<LoginRequest> {
28
28
  }
29
29
  export declare class GoogleRequest extends Message<GoogleRequest> {
30
30
  email: string;
31
+ idToken: string;
32
+ accessToken: string;
31
33
  constructor(data?: PartialMessage<GoogleRequest>);
32
34
  static readonly runtime: typeof proto3;
33
35
  static readonly typeName = "micro.v1.user.GoogleRequest";
@@ -60,6 +60,8 @@ class LoginRequest extends protobuf_1.Message {
60
60
  exports.LoginRequest = LoginRequest;
61
61
  class GoogleRequest extends protobuf_1.Message {
62
62
  email = "";
63
+ idToken = "";
64
+ accessToken = "";
63
65
  constructor(data) {
64
66
  super();
65
67
  protobuf_1.proto3.util.initPartial(data, this);
@@ -68,6 +70,8 @@ class GoogleRequest extends protobuf_1.Message {
68
70
  static typeName = "micro.v1.user.GoogleRequest";
69
71
  static fields = protobuf_1.proto3.util.newFieldList(() => [
70
72
  { no: 1, name: "email", kind: "scalar", T: 9 },
73
+ { no: 2, name: "id_token", kind: "scalar", T: 9 },
74
+ { no: 3, name: "access_token", kind: "scalar", T: 9 },
71
75
  ]);
72
76
  static fromBinary(bytes, options) {
73
77
  return new GoogleRequest().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.109",
3
+ "version": "1.1.110",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -16,8 +16,14 @@ message LoginRequest {
16
16
  string password = 2;
17
17
  }
18
18
 
19
+ // The Google sign-in. The account is the one of the e-mail inside the
20
+ // verified token: id_token (preferred; web and the apps send it) or, when a
21
+ // client has none, access_token (checked with Google's tokeninfo). `email`
22
+ // is what the client says and is never trusted on its own.
19
23
  message GoogleRequest {
20
24
  string email = 1;
25
+ string id_token = 2;
26
+ string access_token = 3;
21
27
  }
22
28
 
23
29
  message AppleRequest {