cloudfire-auth 0.1.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/LICENSE +21 -0
- package/NOTICE +13 -0
- package/README.md +94 -0
- package/dist/CloudFireAuth.d.ts +291 -0
- package/dist/CloudFireAuth.js +346 -0
- package/dist/google-auth/get-oauth-2-token.d.ts +15 -0
- package/dist/google-auth/get-oauth-2-token.js +66 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/rest-api/create-user.d.ts +2 -0
- package/dist/rest-api/create-user.js +3 -0
- package/dist/rest-api/delete-user.d.ts +175 -0
- package/dist/rest-api/delete-user.js +207 -0
- package/dist/rest-api/delete-users.d.ts +2 -0
- package/dist/rest-api/delete-users.js +3 -0
- package/dist/rest-api/get-user-by-email.d.ts +2 -0
- package/dist/rest-api/get-user-by-email.js +3 -0
- package/dist/rest-api/get-user-by-phone-number.d.ts +2 -0
- package/dist/rest-api/get-user-by-phone-number.js +3 -0
- package/dist/rest-api/get-user-by-provider-uid.d.ts +2 -0
- package/dist/rest-api/get-user-by-provider-uid.js +3 -0
- package/dist/rest-api/get-user.d.ts +99 -0
- package/dist/rest-api/get-user.js +177 -0
- package/dist/rest-api/get-users.d.ts +2 -0
- package/dist/rest-api/get-users.js +3 -0
- package/dist/rest-api/list-users.d.ts +2 -0
- package/dist/rest-api/list-users.js +3 -0
- package/dist/rest-api/revoke-refresh-tokens.d.ts +116 -0
- package/dist/rest-api/revoke-refresh-tokens.js +151 -0
- package/dist/rest-api/set-custom-user-claims.d.ts +173 -0
- package/dist/rest-api/set-custom-user-claims.js +261 -0
- package/dist/rest-api/standard-request.d.ts +12 -0
- package/dist/rest-api/standard-request.js +20 -0
- package/dist/rest-api/update-user.d.ts +175 -0
- package/dist/rest-api/update-user.js +375 -0
- package/dist/rest-api/verify-id-token.d.ts +127 -0
- package/dist/rest-api/verify-id-token.js +273 -0
- package/dist/rest-api/verify-session-cookie.d.ts +2 -0
- package/dist/rest-api/verify-session-cookie.js +3 -0
- package/dist/types/firebase-admin/auth-config.d.ts +851 -0
- package/dist/types/firebase-admin/auth-config.js +1 -0
- package/dist/types/firebase-admin/identifier.d.ts +57 -0
- package/dist/types/firebase-admin/identifier.js +1 -0
- package/dist/types/firebase-admin/index.d.ts +153 -0
- package/dist/types/firebase-admin/index.js +1 -0
- package/dist/types/firebase-admin/token-verifier.d.ts +219 -0
- package/dist/types/firebase-admin/token-verifier.js +1 -0
- package/dist/types/firebase-admin/user-record.d.ts +289 -0
- package/dist/types/firebase-admin/user-record.js +1 -0
- package/dist/types/google-auth.d.ts +25 -0
- package/dist/types/google-auth.js +1 -0
- package/dist/types/service-account-key.d.ts +13 -0
- package/dist/types/service-account-key.js +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +1 -0
- package/package.json +56 -0
- package/third_party/firebase-admin-license.txt +201 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2020 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Used for looking up an account by uid.
|
|
19
|
+
*
|
|
20
|
+
* See {@link BaseAuth.getUsers}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UidIdentifier {
|
|
23
|
+
uid: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Used for looking up an account by email.
|
|
27
|
+
*
|
|
28
|
+
* See {@link BaseAuth.getUsers}.
|
|
29
|
+
*/
|
|
30
|
+
export interface EmailIdentifier {
|
|
31
|
+
email: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Used for looking up an account by phone number.
|
|
35
|
+
*
|
|
36
|
+
* See {@link BaseAuth.getUsers}.
|
|
37
|
+
*/
|
|
38
|
+
export interface PhoneIdentifier {
|
|
39
|
+
phoneNumber: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Used for looking up an account by federated provider.
|
|
43
|
+
*
|
|
44
|
+
* See {@link BaseAuth.getUsers}.
|
|
45
|
+
*/
|
|
46
|
+
export interface ProviderIdentifier {
|
|
47
|
+
providerId: string;
|
|
48
|
+
providerUid: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Identifies a user to be looked up.
|
|
52
|
+
*/
|
|
53
|
+
export type UserIdentifier = UidIdentifier | EmailIdentifier | PhoneIdentifier | ProviderIdentifier;
|
|
54
|
+
export declare function isUidIdentifier(id: UserIdentifier): id is UidIdentifier;
|
|
55
|
+
export declare function isEmailIdentifier(id: UserIdentifier): id is EmailIdentifier;
|
|
56
|
+
export declare function isPhoneIdentifier(id: UserIdentifier): id is PhoneIdentifier;
|
|
57
|
+
export declare function isProviderIdentifier(id: ProviderIdentifier): id is ProviderIdentifier;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2021 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import type { DecodedIdToken } from "./token-verifier.js";
|
|
18
|
+
import type { UserRecord } from "./user-record.js";
|
|
19
|
+
import type { CreateRequest, UpdateRequest } from "./auth-config.js";
|
|
20
|
+
import type { UserIdentifier } from "./identifier.js";
|
|
21
|
+
export type { DecodedIdToken, UserRecord, CreateRequest, UpdateRequest, UserIdentifier };
|
|
22
|
+
/**
|
|
23
|
+
* `FirebaseError` is a subclass of the standard JavaScript `Error` object. In
|
|
24
|
+
* addition to a message string and stack trace, it contains a string code.
|
|
25
|
+
*/
|
|
26
|
+
export interface FirebaseError {
|
|
27
|
+
/**
|
|
28
|
+
* Error codes are strings using the following format: `"service/string-code"`.
|
|
29
|
+
* Some examples include `"auth/invalid-uid"` and
|
|
30
|
+
* `"messaging/invalid-recipient"`.
|
|
31
|
+
*
|
|
32
|
+
* While the message for a given error can change, the code will remain the same
|
|
33
|
+
* between backward-compatible versions of the Firebase SDK.
|
|
34
|
+
*/
|
|
35
|
+
code: string;
|
|
36
|
+
/**
|
|
37
|
+
* An explanatory message for the error that just occurred.
|
|
38
|
+
*
|
|
39
|
+
* This message is designed to be helpful to you, the developer. Because
|
|
40
|
+
* it generally does not convey meaningful information to end users,
|
|
41
|
+
* this message should not be displayed in your application.
|
|
42
|
+
*/
|
|
43
|
+
message: string;
|
|
44
|
+
/**
|
|
45
|
+
* A string value containing the execution backtrace when the error originally
|
|
46
|
+
* occurred.
|
|
47
|
+
*
|
|
48
|
+
* This information can be useful for troubleshooting the cause of the error with
|
|
49
|
+
* {@link https://firebase.google.com/support | Firebase Support}.
|
|
50
|
+
*/
|
|
51
|
+
stack?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a JSON-serializable object representation of this error.
|
|
54
|
+
*
|
|
55
|
+
* @returns A JSON-serializable representation of this object.
|
|
56
|
+
*/
|
|
57
|
+
toJSON(): object;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Composite type which includes both a `FirebaseError` object and an index
|
|
61
|
+
* which can be used to get the errored item.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```javascript
|
|
65
|
+
* var registrationTokens = [token1, token2, token3];
|
|
66
|
+
* admin.messaging().subscribeToTopic(registrationTokens, 'topic-name')
|
|
67
|
+
* .then(function(response) {
|
|
68
|
+
* if (response.failureCount > 0) {
|
|
69
|
+
* console.log("Following devices unsucessfully subscribed to topic:");
|
|
70
|
+
* response.errors.forEach(function(error) {
|
|
71
|
+
* var invalidToken = registrationTokens[error.index];
|
|
72
|
+
* console.log(invalidToken, error.error);
|
|
73
|
+
* });
|
|
74
|
+
* } else {
|
|
75
|
+
* console.log("All devices successfully subscribed to topic:", response);
|
|
76
|
+
* }
|
|
77
|
+
* })
|
|
78
|
+
* .catch(function(error) {
|
|
79
|
+
* console.log("Error subscribing to topic:", error);
|
|
80
|
+
* });
|
|
81
|
+
*```
|
|
82
|
+
*/
|
|
83
|
+
export interface FirebaseArrayIndexError {
|
|
84
|
+
/**
|
|
85
|
+
* The index of the errored item within the original array passed as part of the
|
|
86
|
+
* called API method.
|
|
87
|
+
*/
|
|
88
|
+
index: number;
|
|
89
|
+
/**
|
|
90
|
+
* The error object.
|
|
91
|
+
*/
|
|
92
|
+
error: FirebaseError;
|
|
93
|
+
}
|
|
94
|
+
/** Represents the result of the {@link BaseAuth.getUsers} API. */
|
|
95
|
+
export interface GetUsersResult {
|
|
96
|
+
/**
|
|
97
|
+
* Set of user records, corresponding to the set of users that were
|
|
98
|
+
* requested. Only users that were found are listed here. The result set is
|
|
99
|
+
* unordered.
|
|
100
|
+
*/
|
|
101
|
+
users: UserRecord[];
|
|
102
|
+
/** Set of identifiers that were requested, but not found. */
|
|
103
|
+
notFound: UserIdentifier[];
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Interface representing the object returned from a
|
|
107
|
+
* {@link BaseAuth.listUsers} operation. Contains the list
|
|
108
|
+
* of users for the current batch and the next page token if available.
|
|
109
|
+
*/
|
|
110
|
+
export interface ListUsersResult {
|
|
111
|
+
/**
|
|
112
|
+
* The list of {@link UserRecord} objects for the
|
|
113
|
+
* current downloaded batch.
|
|
114
|
+
*/
|
|
115
|
+
users: UserRecord[];
|
|
116
|
+
/**
|
|
117
|
+
* The next page token if available. This is needed for the next batch download.
|
|
118
|
+
*/
|
|
119
|
+
pageToken?: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Represents the result of the {@link BaseAuth.deleteUsers}.
|
|
123
|
+
* API.
|
|
124
|
+
*/
|
|
125
|
+
export interface DeleteUsersResult {
|
|
126
|
+
/**
|
|
127
|
+
* The number of user records that failed to be deleted (possibly zero).
|
|
128
|
+
*/
|
|
129
|
+
failureCount: number;
|
|
130
|
+
/**
|
|
131
|
+
* The number of users that were deleted successfully (possibly zero).
|
|
132
|
+
* Users that did not exist prior to calling `deleteUsers()` are
|
|
133
|
+
* considered to be successfully deleted.
|
|
134
|
+
*/
|
|
135
|
+
successCount: number;
|
|
136
|
+
/**
|
|
137
|
+
* A list of `FirebaseArrayIndexError` instances describing the errors that
|
|
138
|
+
* were encountered during the deletion. Length of this list is equal to
|
|
139
|
+
* the return value of {@link DeleteUsersResult.failureCount}.
|
|
140
|
+
*/
|
|
141
|
+
errors: FirebaseArrayIndexError[];
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Interface representing the session cookie options needed for the
|
|
145
|
+
* {@link BaseAuth.createSessionCookie} method.
|
|
146
|
+
*/
|
|
147
|
+
export interface SessionCookieOptions {
|
|
148
|
+
/**
|
|
149
|
+
* The session cookie custom expiration in milliseconds. The minimum allowed is
|
|
150
|
+
* 5 minutes and the maxium allowed is 2 weeks.
|
|
151
|
+
*/
|
|
152
|
+
expiresIn: number;
|
|
153
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2018 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Interface representing a decoded Firebase ID token, returned from the
|
|
19
|
+
* {@link BaseAuth.verifyIdToken} method.
|
|
20
|
+
*
|
|
21
|
+
* Firebase ID tokens are OpenID Connect spec-compliant JSON Web Tokens (JWTs).
|
|
22
|
+
* See the
|
|
23
|
+
* [ID Token section of the OpenID Connect spec](http://openid.net/specs/openid-connect-core-1_0.html#IDToken)
|
|
24
|
+
* for more information about the specific properties below.
|
|
25
|
+
*/
|
|
26
|
+
export interface DecodedIdToken {
|
|
27
|
+
/**
|
|
28
|
+
* The audience for which this token is intended.
|
|
29
|
+
*
|
|
30
|
+
* This value is a string equal to your Firebase project ID, the unique
|
|
31
|
+
* identifier for your Firebase project, which can be found in [your project's
|
|
32
|
+
* settings](https://console.firebase.google.com/project/_/settings/general/android:com.random.android).
|
|
33
|
+
*/
|
|
34
|
+
aud: string;
|
|
35
|
+
/**
|
|
36
|
+
* Time, in seconds since the Unix epoch, when the end-user authentication
|
|
37
|
+
* occurred.
|
|
38
|
+
*
|
|
39
|
+
* This value is not set when this particular ID token was created, but when the
|
|
40
|
+
* user initially logged in to this session. In a single session, the Firebase
|
|
41
|
+
* SDKs will refresh a user's ID tokens every hour. Each ID token will have a
|
|
42
|
+
* different [`iat`](#iat) value, but the same `auth_time` value.
|
|
43
|
+
*/
|
|
44
|
+
auth_time: number;
|
|
45
|
+
/**
|
|
46
|
+
* The email of the user to whom the ID token belongs, if available.
|
|
47
|
+
*/
|
|
48
|
+
email?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether or not the email of the user to whom the ID token belongs is
|
|
51
|
+
* verified, provided the user has an email.
|
|
52
|
+
*/
|
|
53
|
+
email_verified?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The ID token's expiration time, in seconds since the Unix epoch. That is, the
|
|
56
|
+
* time at which this ID token expires and should no longer be considered valid.
|
|
57
|
+
*
|
|
58
|
+
* The Firebase SDKs transparently refresh ID tokens every hour, issuing a new
|
|
59
|
+
* ID token with up to a one hour expiration.
|
|
60
|
+
*/
|
|
61
|
+
exp: number;
|
|
62
|
+
/**
|
|
63
|
+
* Information about the sign in event, including which sign in provider was
|
|
64
|
+
* used and provider-specific identity details.
|
|
65
|
+
*
|
|
66
|
+
* This data is provided by the Firebase Authentication service and is a
|
|
67
|
+
* reserved claim in the ID token.
|
|
68
|
+
*/
|
|
69
|
+
firebase: {
|
|
70
|
+
/**
|
|
71
|
+
* Provider-specific identity details corresponding
|
|
72
|
+
* to the provider used to sign in the user.
|
|
73
|
+
*/
|
|
74
|
+
identities: {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* The ID of the provider used to sign in the user.
|
|
79
|
+
* One of `"anonymous"`, `"password"`, `"facebook.com"`, `"github.com"`,
|
|
80
|
+
* `"google.com"`, `"twitter.com"`, `"apple.com"`, `"microsoft.com"`,
|
|
81
|
+
* `"yahoo.com"`, `"phone"`, `"playgames.google.com"`, `"gc.apple.com"`,
|
|
82
|
+
* or `"custom"`.
|
|
83
|
+
*
|
|
84
|
+
* Additional Identity Platform provider IDs include `"linkedin.com"`,
|
|
85
|
+
* OIDC and SAML identity providers prefixed with `"saml."` and `"oidc."`
|
|
86
|
+
* respectively.
|
|
87
|
+
*/
|
|
88
|
+
sign_in_provider: string;
|
|
89
|
+
/**
|
|
90
|
+
* The type identifier or `factorId` of the second factor, provided the
|
|
91
|
+
* ID token was obtained from a multi-factor authenticated user.
|
|
92
|
+
* For phone, this is `"phone"`.
|
|
93
|
+
*/
|
|
94
|
+
sign_in_second_factor?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The `uid` of the second factor used to sign in, provided the
|
|
97
|
+
* ID token was obtained from a multi-factor authenticated user.
|
|
98
|
+
*/
|
|
99
|
+
second_factor_identifier?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the tenant the user belongs to, if available.
|
|
102
|
+
*/
|
|
103
|
+
tenant?: string;
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* The ID token's issued-at time, in seconds since the Unix epoch. That is, the
|
|
108
|
+
* time at which this ID token was issued and should start to be considered
|
|
109
|
+
* valid.
|
|
110
|
+
*
|
|
111
|
+
* The Firebase SDKs transparently refresh ID tokens every hour, issuing a new
|
|
112
|
+
* ID token with a new issued-at time. If you want to get the time at which the
|
|
113
|
+
* user session corresponding to the ID token initially occurred, see the
|
|
114
|
+
* [`auth_time`](#auth_time) property.
|
|
115
|
+
*/
|
|
116
|
+
iat: number;
|
|
117
|
+
/**
|
|
118
|
+
* The issuer identifier for the issuer of the response.
|
|
119
|
+
*
|
|
120
|
+
* This value is a URL with the format
|
|
121
|
+
* `https://securetoken.google.com/<PROJECT_ID>`, where `<PROJECT_ID>` is the
|
|
122
|
+
* same project ID specified in the [`aud`](#aud) property.
|
|
123
|
+
*/
|
|
124
|
+
iss: string;
|
|
125
|
+
/**
|
|
126
|
+
* The phone number of the user to whom the ID token belongs, if available.
|
|
127
|
+
*/
|
|
128
|
+
phone_number?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The photo URL for the user to whom the ID token belongs, if available.
|
|
131
|
+
*/
|
|
132
|
+
picture?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The `uid` corresponding to the user who the ID token belonged to.
|
|
135
|
+
*
|
|
136
|
+
* As a convenience, this value is copied over to the [`uid`](#uid) property.
|
|
137
|
+
*/
|
|
138
|
+
sub: string;
|
|
139
|
+
/**
|
|
140
|
+
* The `uid` corresponding to the user who the ID token belonged to.
|
|
141
|
+
*
|
|
142
|
+
* This value is not actually in the JWT token claims itself. It is added as a
|
|
143
|
+
* convenience, and is set as the value of the [`sub`](#sub) property.
|
|
144
|
+
*/
|
|
145
|
+
uid: string;
|
|
146
|
+
/**
|
|
147
|
+
* Other arbitrary claims included in the ID token.
|
|
148
|
+
*/
|
|
149
|
+
[key: string]: any;
|
|
150
|
+
}
|
|
151
|
+
/** @alpha */
|
|
152
|
+
export interface DecodedAuthBlockingSharedUserInfo {
|
|
153
|
+
uid: string;
|
|
154
|
+
display_name?: string;
|
|
155
|
+
email?: string;
|
|
156
|
+
photo_url?: string;
|
|
157
|
+
phone_number?: string;
|
|
158
|
+
}
|
|
159
|
+
/** @alpha */
|
|
160
|
+
export interface DecodedAuthBlockingMetadata {
|
|
161
|
+
creation_time?: number;
|
|
162
|
+
last_sign_in_time?: number;
|
|
163
|
+
}
|
|
164
|
+
/** @alpha */
|
|
165
|
+
export interface DecodedAuthBlockingUserInfo extends DecodedAuthBlockingSharedUserInfo {
|
|
166
|
+
provider_id: string;
|
|
167
|
+
}
|
|
168
|
+
/** @alpha */
|
|
169
|
+
export interface DecodedAuthBlockingMfaInfo {
|
|
170
|
+
uid: string;
|
|
171
|
+
display_name?: string;
|
|
172
|
+
phone_number?: string;
|
|
173
|
+
enrollment_time?: string;
|
|
174
|
+
factor_id?: string;
|
|
175
|
+
}
|
|
176
|
+
/** @alpha */
|
|
177
|
+
export interface DecodedAuthBlockingEnrolledFactors {
|
|
178
|
+
enrolled_factors?: DecodedAuthBlockingMfaInfo[];
|
|
179
|
+
}
|
|
180
|
+
/** @alpha */
|
|
181
|
+
export interface DecodedAuthBlockingUserRecord extends DecodedAuthBlockingSharedUserInfo {
|
|
182
|
+
email_verified?: boolean;
|
|
183
|
+
disabled?: boolean;
|
|
184
|
+
metadata?: DecodedAuthBlockingMetadata;
|
|
185
|
+
password_hash?: string;
|
|
186
|
+
password_salt?: string;
|
|
187
|
+
provider_data?: DecodedAuthBlockingUserInfo[];
|
|
188
|
+
multi_factor?: DecodedAuthBlockingEnrolledFactors;
|
|
189
|
+
custom_claims?: any;
|
|
190
|
+
tokens_valid_after_time?: number;
|
|
191
|
+
tenant_id?: string;
|
|
192
|
+
[key: string]: any;
|
|
193
|
+
}
|
|
194
|
+
/** @alpha */
|
|
195
|
+
export interface DecodedAuthBlockingToken {
|
|
196
|
+
aud: string;
|
|
197
|
+
exp: number;
|
|
198
|
+
iat: number;
|
|
199
|
+
iss: string;
|
|
200
|
+
sub: string;
|
|
201
|
+
event_id: string;
|
|
202
|
+
event_type: string;
|
|
203
|
+
ip_address: string;
|
|
204
|
+
user_agent?: string;
|
|
205
|
+
locale?: string;
|
|
206
|
+
sign_in_method?: string;
|
|
207
|
+
user_record?: DecodedAuthBlockingUserRecord;
|
|
208
|
+
tenant_id?: string;
|
|
209
|
+
raw_user_info?: string;
|
|
210
|
+
sign_in_attributes?: {
|
|
211
|
+
[key: string]: any;
|
|
212
|
+
};
|
|
213
|
+
oauth_id_token?: string;
|
|
214
|
+
oauth_access_token?: string;
|
|
215
|
+
oauth_refresh_token?: string;
|
|
216
|
+
oauth_token_secret?: string;
|
|
217
|
+
oauth_expires_in?: number;
|
|
218
|
+
[key: string]: any;
|
|
219
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|