@@ -121,84 +121,6 @@ export interface VersionService {
121
121
version : string ;
122
122
}
123
123
124
- export type FirebaseSignInProvider =
125
- | 'custom'
126
- | 'email'
127
- | 'password'
128
- | 'phone'
129
- | 'anonymous'
130
- | 'google.com'
131
- | 'facebook.com'
132
- | 'github.com'
133
- | 'twitter.com'
134
- | 'microsoft.com'
135
- | 'apple.com' ;
136
-
137
- export interface FirebaseIdToken {
138
- // Firebase Auth tokens contain snake_case claims following the JWT standard / convention.
139
- /* eslint-disable camelcase */
140
-
141
- // Always set to https://securetoken.google.com/PROJECT_ID
142
- iss : string ;
143
-
144
- // Always set to PROJECT_ID
145
- aud : string ;
146
-
147
- // The user's unique id
148
- sub : string ;
149
-
150
- // The token issue time, in seconds since epoch
151
- iat : number ;
152
-
153
- // The token expiry time, normally 'iat' + 3600
154
- exp : number ;
155
-
156
- // The user's unique id, must be equal to 'sub'
157
- user_id : string ;
158
-
159
- // The time the user authenticated, normally 'iat'
160
- auth_time : number ;
161
-
162
- // The sign in provider, only set when the provider is 'anonymous'
163
- provider_id ?: 'anonymous' ;
164
-
165
- // The user's primary email
166
- email ?: string ;
167
-
168
- // The user's email verification status
169
- email_verified ?: boolean ;
170
-
171
- // The user's primary phone number
172
- phone_number ?: string ;
173
-
174
- // The user's display name
175
- name ?: string ;
176
-
177
- // The user's profile photo URL
178
- picture ?: string ;
179
-
180
- // Information on all identities linked to this user
181
- firebase : {
182
- // The primary sign-in provider
183
- sign_in_provider : FirebaseSignInProvider ;
184
-
185
- // A map of providers to the user's list of unique identifiers from
186
- // each provider
187
- identities ?: { [ provider in FirebaseSignInProvider ] ?: string [ ] } ;
188
- } ;
189
-
190
- // Custom claims set by the developer
191
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
192
- [ claim : string ] : any ;
193
-
194
- uid ?: never ; // Try to catch a common mistake of "uid" (should be "sub" instead).
195
-
196
- /* eslint-enable camelcase */
197
- }
198
-
199
- export type EmulatorMockTokenOptions = ( { user_id : string } | { sub : string } ) &
200
- Partial < FirebaseIdToken > ;
201
-
202
124
declare module '@firebase/component' {
203
125
interface NameServiceMapping {
204
126
'app' : FirebaseApp ;
0 commit comments