.SignIn()

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

Method Syntax

await db.SignIn(credentials)
ArgumentsDescription
credentials Variables used in a signin query.
cancellationToken The cancellationToken enables graceful cancellation of asynchronous operations.
// 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.

Was this page helpful?