@glissandoo/lib 1.0.12 → 1.0.14
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/functions/auth.d.ts +3 -26
- package/helpers/auth.d.ts +7 -0
- package/helpers/auth.js +2 -0
- package/package.json +1 -1
package/functions/auth.d.ts
CHANGED
|
@@ -1,36 +1,13 @@
|
|
|
1
|
-
import { LanguagesTypes } from '../lang';
|
|
2
|
-
import { UserRegisterVia } from '../models/User/types';
|
|
3
1
|
export declare namespace AuthFbFunctionsTypes {
|
|
4
2
|
interface LoginParams {
|
|
5
3
|
userId: string;
|
|
6
4
|
idToken: string;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
interface StatusParams {
|
|
12
|
-
sessionCookie: string;
|
|
13
|
-
}
|
|
6
|
+
type LoginResult = void;
|
|
7
|
+
type StatusParams = void;
|
|
14
8
|
interface StatusResult {
|
|
15
9
|
idToken: string | null;
|
|
16
10
|
}
|
|
17
|
-
|
|
18
|
-
sessionCookie: string;
|
|
19
|
-
}
|
|
11
|
+
type LogoutParams = void;
|
|
20
12
|
type LogoutResult = void;
|
|
21
|
-
interface RegisterParams {
|
|
22
|
-
uid: string;
|
|
23
|
-
name: string;
|
|
24
|
-
lastname: string;
|
|
25
|
-
email: string;
|
|
26
|
-
via: UserRegisterVia;
|
|
27
|
-
lang: LanguagesTypes;
|
|
28
|
-
}
|
|
29
|
-
type RegisterResult = void;
|
|
30
|
-
interface GetTokenParams {
|
|
31
|
-
userId: string;
|
|
32
|
-
}
|
|
33
|
-
interface GetTokenResult {
|
|
34
|
-
token: string;
|
|
35
|
-
}
|
|
36
13
|
}
|
package/helpers/auth.js
ADDED