Fix error handling of passwordless login request
This commit is contained in:
parent
9129c7113c
commit
38915c25be
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user