Fix error handling of passwordless login request
This commit is contained in:
parent
9129c7113c
commit
38915c25be
1 changed files with 3 additions and 0 deletions
|
|
@ -132,6 +132,9 @@ func LoginWithDevice(ctx context.Context, email string, cfg *config.Config, vaul
|
||||||
return LoginResponseToken{}, crypto.MasterKey{}, "", err
|
return LoginResponseToken{}, crypto.MasterKey{}, "", err
|
||||||
}
|
}
|
||||||
data, err := CreateAuthRequest(ctx, accessCode, cfg.ConfigFile.DeviceUUID, email, base64.StdEncoding.EncodeToString(publicKey.PublicBytes()), cfg)
|
data, err := CreateAuthRequest(ctx, accessCode, cfg.ConfigFile.DeviceUUID, email, base64.StdEncoding.EncodeToString(publicKey.PublicBytes()), cfg)
|
||||||
|
if err != nil {
|
||||||
|
return LoginResponseToken{}, crypto.MasterKey{}, "", err
|
||||||
|
}
|
||||||
|
|
||||||
timeoutChan := make(chan bool)
|
timeoutChan := make(chan bool)
|
||||||
go func() {
|
go func() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue