Skip to content

Commit 4bd528e

Browse files
committed
add linting stuff
1 parent fbdb11c commit 4bd528e

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

src/functions/login.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function login(
7070

7171
const credentials: AuthenticationResponseJSON = await startAuthentication(
7272
{
73-
optionsJSON: challengeOptions
73+
optionsJSON: challengeOptions,
7474
}
7575
).catch((err: string) => {
7676
throw Error(err);
@@ -181,8 +181,8 @@ export async function login(
181181
);
182182

183183
const headers = {
184-
'Content-Type': 'application/json',
185-
'Authorization': `Bearer ${token}`,
184+
"Content-Type": "application/json",
185+
Authorization: `Bearer ${token}`,
186186
};
187187

188188
const saveCredentialsResponse = await axiosClient.post<string>(

src/functions/onboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function onboard(
5555

5656
const credentials: AuthenticationResponseJSON = await startAuthentication(
5757
{
58-
optionsJSON: challengeOptions
58+
optionsJSON: challengeOptions,
5959
}
6060
).catch((err: string) => {
6161
throw Error(err);

src/functions/register.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { AxiosInstance } from "axios";
2525
export async function register(
2626
axiosClient: AxiosInstance,
2727
userMail: string,
28-
autoRegister: boolean = false
28+
autoRegister = false
2929
): Promise<WembatActionResponse<WembatRegisterResult>> {
3030
const actionResponse: WembatActionResponse<WembatRegisterResult> = {
3131
success: false,
@@ -34,7 +34,6 @@ export async function register(
3434
};
3535

3636
try {
37-
debugger;
3837
if (!browserSupportsWebAuthn())
3938
throw Error("WebAuthn is not supported on this browser!");
4039

@@ -54,12 +53,10 @@ export async function register(
5453
requestRegisterResponse.data
5554
);
5655

57-
const credentials: RegistrationResponseJSON = await startRegistration(
58-
{
59-
optionsJSON: requestRegisterResponseData.options,
60-
useAutoRegister: autoRegister
61-
}
62-
).catch((err: string) => {
56+
const credentials: RegistrationResponseJSON = await startRegistration({
57+
optionsJSON: requestRegisterResponseData.options,
58+
useAutoRegister: autoRegister,
59+
}).catch((err: string) => {
6360
throw Error(err);
6461
});
6562

0 commit comments

Comments
 (0)