.SignIn()

Signs in to a root, namespace, database or scope user.

Method Syntax

await db.SignIn(credentials)

Arguments

ArgumentsDescription
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.