Skip to content

Commit 9f0effb

Browse files
committed
fix: ts issue
1 parent 1e57361 commit 9f0effb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/insomnia/src/models/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export interface AuthTypeNone {
130130
}
131131

132132
export interface AuthTypeSingleToken {
133-
type: 'singletoken';
133+
type: 'singleToken';
134134
token?: string;
135135
disabled?: boolean;
136136
}

packages/insomnia/src/ui/components/editors/auth/auth-wrapper.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React, { type FC, type ReactNode } from 'react';
22
import { Toolbar } from 'react-aria-components';
33

4-
import { SingleTokenAuth } from '~/ui/components/editors/auth/single-token-auth';
5-
64
import type { AuthTypes } from '~/common/constants';
5+
import { SingleTokenAuth } from '~/ui/components/editors/auth/single-token-auth';
76

87
import type { RequestAuthentication } from '../../../../models/request';
98
import { getAuthObjectOrNull } from '../../../../network/authentication';
@@ -51,7 +50,7 @@ export const AuthWrapper: FC<{
5150
authBody = <NetrcAuth />;
5251
} else if (type === 'asap') {
5352
authBody = <AsapAuth />;
54-
} else if (type === 'singletoken') {
53+
} else if (type === 'singleToken') {
5554
authBody = <SingleTokenAuth disabled={disabled} />;
5655
} else {
5756
authBody = (

0 commit comments

Comments
 (0)