Table of Contents

Method VerifyAuthenticationAsync

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

VerifyAuthenticationAsync(IAuthToken)

Asynchronously verify if the driver can connect using the authToken.
Try to establish a working read connection to the remote server or a member of a cluster and exchange some data.In a cluster, there is no guarantee about which server will be contacted. If the data exchange is successful and the authentication information is valid, true is returned. Otherwise, the error will be matched against a list of known authentication errors.If the error is on that list, false is returned indicating that the authentication information is invalid. If the not on the list, the error is thrown.

Task<bool> VerifyAuthenticationAsync(IAuthToken authToken)

Parameters

authToken IAuthToken

Auth token to verify.

Returns

Task<bool>

A task that represents the asynchronous operation.