Fix error handling of passwordless login request

This commit is contained in:
Bernd Schoolmann 2023-09-11 15:39:37 +02:00
parent 9129c7113c
commit 38915c25be
No known key found for this signature in database

View File

@ -132,6 +132,9 @@ func LoginWithDevice(ctx context.Context, email string, cfg *config.Config, vaul
return LoginResponseToken{}, crypto.MasterKey{}, "", err
}
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)
go func() {