Skip to content

Commit 40b2605

Browse files
committed
Formatting
1 parent 4d9ee4c commit 40b2605

File tree

4 files changed

+38
-14
lines changed

4 files changed

+38
-14
lines changed

packages-exp/auth-exp/index.node.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ FetchProvider.initialize(
4141

4242
// Core functionality shared by all clients
4343
export * from './src';
44-
export { FactorId, ProviderId, SignInMethod, OperationType, ActionCodeOperation } from './src/model/enum_maps';
44+
export {
45+
FactorId,
46+
ProviderId,
47+
SignInMethod,
48+
OperationType,
49+
ActionCodeOperation
50+
} from './src/model/enum_maps';
4551

4652
export function getAuth(app: FirebaseApp): Auth {
4753
const provider = _getProvider(app, 'auth-exp');

packages-exp/auth-exp/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ export {
7474
} from './src/model/public_types';
7575

7676
// Helper maps (not used internally)
77-
export { FactorId, ProviderId, SignInMethod, OperationType, ActionCodeOperation } from './src/model/enum_maps';
77+
export {
78+
FactorId,
79+
ProviderId,
80+
SignInMethod,
81+
OperationType,
82+
ActionCodeOperation
83+
} from './src/model/enum_maps';
7884

7985
// Core functionality shared by all clients
8086
export * from './src';

packages-exp/auth-exp/src/core/user/link_unlink.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ import { getModularInstance } from '@firebase/util';
3636
*
3737
* @public
3838
*/
39-
export async function unlink(
40-
user: User,
41-
providerId: string
42-
): Promise<User> {
39+
export async function unlink(user: User, providerId: string): Promise<User> {
4340
const userInternal = getModularInstance(user) as UserInternal;
4441
await _assertLinkedStatus(true, userInternal, providerId);
4542
const { providerUserInfo } = await deleteLinkedAccounts(userInternal.auth, {

packages-exp/auth-exp/src/model/enum_maps.ts

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1+
/**
2+
* @license
3+
* Copyright 2021 Google LLC
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+
118
/**
219
* An enum of factors that may be used for multifactor authentication.
320
*
421
* @public
522
*/
6-
export const FactorId = {
23+
export const FactorId = {
724
/** Phone as second factor */
825
PHONE: 'phone'
926
};
@@ -13,7 +30,7 @@
1330
*
1431
* @public
1532
*/
16-
export const ProviderId = {
33+
export const ProviderId = {
1734
/** @internal */
1835
ANONYMOUS: 'anonymous',
1936
/** @internal */
@@ -34,13 +51,12 @@
3451
TWITTER: 'twitter.com'
3552
};
3653

37-
3854
/**
3955
* Enumeration of supported sign-in methods.
4056
*
4157
* @public
4258
*/
43-
export const SignInMethod = {
59+
export const SignInMethod = {
4460
/** @internal */
4561
ANONYMOUS: 'anonymous',
4662
/** Email link sign in method */
@@ -64,7 +80,7 @@
6480
*
6581
* @public
6682
*/
67-
export const OperationType = {
83+
export const OperationType = {
6884
/** Operation involving linking an additional provider to an already signed-in user. */
6985
LINK: 'link',
7086
/** Operation involving using a provider to reauthenticate an already signed-in user. */
@@ -73,13 +89,12 @@
7389
SIGN_IN: 'signIn'
7490
};
7591

76-
7792
/**
7893
* An enumeration of the possible email action types.
7994
*
8095
* @public
8196
*/
82-
export const ActionCodeOperation = {
97+
export const ActionCodeOperation = {
8398
/** The email link sign-in action. */
8499
EMAIL_SIGNIN: 'EMAIL_SIGNIN',
85100
/** The password reset action. */
@@ -92,4 +107,4 @@
92107
VERIFY_AND_CHANGE_EMAIL: 'VERIFY_AND_CHANGE_EMAIL',
93108
/** The email verification action. */
94109
VERIFY_EMAIL: 'VERIFY_EMAIL'
95-
};
110+
};

0 commit comments

Comments
 (0)