Signs in to a root, namespace, database or scope user.
Method Syntax
await db.SignIn(credentials)Arguments
Arguments | Description |
|---|---|
credentials | Variables used in a signin query. |
cancellationToken | The cancellationToken enables graceful cancellation of asynchronous operations. |
Example usage
// Sign in as root user
await db.SignIn(new RootAuth { Username = "root",
Password = "secret" });You can invalidate the authentication for the current connection using the Invalidate() method.