@flashbacktech/flashbackclient 0.1.72 → 0.1.73

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.
@@ -126,13 +126,13 @@ class ApiClient {
126
126
  }
127
127
  };
128
128
  ////// Auth API
129
- this.authenticateGoogle = async (token) => {
130
- this.setAuthToken(token);
131
- return this.makeRequest('auth/google', 'POST', { token });
129
+ this.authenticateGoogle = async (data) => {
130
+ this.setAuthToken(data.token);
131
+ return this.makeRequest('auth/google', 'POST', data);
132
132
  };
133
- this.authenticateGithub = async (code) => {
134
- this.setAuthToken(code);
135
- return this.makeRequest('auth/github', 'POST', { code });
133
+ this.authenticateGithub = async (data) => {
134
+ this.setAuthToken(data.code);
135
+ return this.makeRequest('auth/github', 'POST', data);
136
136
  };
137
137
  /**
138
138
  * Authenticate with a web3 provider
@@ -1,4 +1,5 @@
1
1
  import { ProviderType } from '../interfaces';
2
+ import { DeviceInfo } from './device';
2
3
  export interface AuthState {
3
4
  user: {
4
5
  email: string;
@@ -101,3 +102,11 @@ export interface ResetPasswordBody {
101
102
  token: string;
102
103
  newPassword: string;
103
104
  }
105
+ export interface GoogleLoginRequest {
106
+ token: string;
107
+ deviceInfo: DeviceInfo;
108
+ }
109
+ export interface GithubLoginRequest {
110
+ code: string;
111
+ deviceInfo: DeviceInfo;
112
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.72",
3
+ "version": "0.1.73",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"