Skip to content

Commit fbc6a5e

Browse files
committed
PR Feedback
1 parent ba14577 commit fbc6a5e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages-exp/auth-exp/src/model/action_code_url.test.ts renamed to packages-exp/auth-exp/src/core/action_code_url.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import { expect } from 'chai';
1919
import { ActionCodeURL } from './action_code_url';
2020
import { mockAuth } from '../../test/mock_auth';
21-
import { Operation } from './action_code_info';
21+
import { Operation } from '../model/action_code_info';
2222

2323
describe('ActionCodeURL', () => {
2424
describe('_fromLink', () => {

packages-exp/auth-exp/src/model/action_code_url.ts renamed to packages-exp/auth-exp/src/core/action_code_url.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { AuthErrorCode, AUTH_ERROR_FACTORY } from '../core/errors';
19-
import { Operation } from './action_code_info';
20-
import { Auth } from './auth';
18+
import { AuthErrorCode, AUTH_ERROR_FACTORY } from './errors';
19+
import { Operation } from '../model/action_code_info';
20+
import { Auth } from '../model/auth';
2121

2222
/**
2323
* Enums for fields in URL query string.
@@ -35,7 +35,7 @@ enum QueryField {
3535
/**
3636
* Map from mode string in action code URL to Action Code Info operation.
3737
*/
38-
const ModeToOperationMap: { [key: string]: Operation } = {
38+
const MODE_TO_OPERATION_MAP: { [key: string]: Operation } = {
3939
'recoverEmail': Operation.RECOVER_EMAIL,
4040
'resetPassword': Operation.PASSWORD_RESET,
4141
'signIn': Operation.EMAIL_SIGNIN,
@@ -48,7 +48,7 @@ const ModeToOperationMap: { [key: string]: Operation } = {
4848
* Maps the mode string in action code URL to Action Code Info operation.
4949
*/
5050
function parseMode(mode: string | null): Operation | null {
51-
return mode ? ModeToOperationMap[mode] || null : null;
51+
return mode ? MODE_TO_OPERATION_MAP[mode] || null : null;
5252
}
5353

5454
function parseDeepLink(url: string): string {

packages-exp/auth-exp/src/core/strategies/email_link.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
ActionCodeSettings,
2222
setActionCodeSettingsOnRequest
2323
} from '../../model/action_code_settings';
24-
import { ActionCodeURL } from '../../model/action_code_url';
24+
import { ActionCodeURL } from '../action_code_url';
2525
import { Auth } from '../../model/auth';
2626

2727
export async function sendSignInLinkToEmail(

0 commit comments

Comments
 (0)