supaapps-auth 2.0.0-rc.10 → 2.0.0-rc.11

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.
@@ -18,7 +18,9 @@ export declare class AuthManager {
18
18
  getLoginWithGoogleUri(): string;
19
19
  isLoggedIn(): Promise<boolean>;
20
20
  getAccessToken(mustBeLoggedIn?: boolean): Promise<string>;
21
- platformCheck(email: string): Promise<Array<Platforms>>;
21
+ platformCheck(email: string): Promise<{
22
+ platforms: Platforms[];
23
+ }>;
22
24
  verifyEmail(email: string, token: string): Promise<boolean>;
23
25
  doPassReset(email: string, token: string, newPassword: string): Promise<boolean>;
24
26
  changeEmail(email: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supaapps-auth",
3
- "version": "2.0.0-rc.10",
3
+ "version": "2.0.0-rc.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -171,7 +171,7 @@ export class AuthManager {
171
171
  }
172
172
 
173
173
 
174
- public async platformCheck(email: string): Promise<Array<Platforms>> {
174
+ public async platformCheck(email: string): Promise<{platforms: Platforms[]}> {
175
175
  const response = await axios.post(
176
176
  `${this.authServer}auth/email/platform_check`,
177
177
  {