SurrealDB Docs Logo

Enter a search query

.invalidate()

Invalidates the authentication for the current connection.

Method Syntax
db.invalidate()

Example usage

await db.invalidate();