File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export async function login(
70
70
71
71
const credentials : AuthenticationResponseJSON = await startAuthentication (
72
72
{
73
- optionsJSON : challengeOptions
73
+ optionsJSON : challengeOptions ,
74
74
}
75
75
) . catch ( ( err : string ) => {
76
76
throw Error ( err ) ;
@@ -181,8 +181,8 @@ export async function login(
181
181
) ;
182
182
183
183
const headers = {
184
- ' Content-Type' : ' application/json' ,
185
- ' Authorization' : `Bearer ${ token } ` ,
184
+ " Content-Type" : " application/json" ,
185
+ Authorization : `Bearer ${ token } ` ,
186
186
} ;
187
187
188
188
const saveCredentialsResponse = await axiosClient . post < string > (
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export async function onboard(
55
55
56
56
const credentials : AuthenticationResponseJSON = await startAuthentication (
57
57
{
58
- optionsJSON : challengeOptions
58
+ optionsJSON : challengeOptions ,
59
59
}
60
60
) . catch ( ( err : string ) => {
61
61
throw Error ( err ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import { AxiosInstance } from "axios";
25
25
export async function register (
26
26
axiosClient : AxiosInstance ,
27
27
userMail : string ,
28
- autoRegister : boolean = false
28
+ autoRegister = false
29
29
) : Promise < WembatActionResponse < WembatRegisterResult > > {
30
30
const actionResponse : WembatActionResponse < WembatRegisterResult > = {
31
31
success : false ,
@@ -34,7 +34,6 @@ export async function register(
34
34
} ;
35
35
36
36
try {
37
- debugger ;
38
37
if ( ! browserSupportsWebAuthn ( ) )
39
38
throw Error ( "WebAuthn is not supported on this browser!" ) ;
40
39
@@ -54,12 +53,10 @@ export async function register(
54
53
requestRegisterResponse . data
55
54
) ;
56
55
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 ) => {
63
60
throw Error ( err ) ;
64
61
} ) ;
65
62
You can’t perform that action at this time.
0 commit comments