• Start

Languages

/

Mojo

/

Methods

invalidate

The invalidate() method for the SurrealDB Mojo SDK invalidates the authentication for the current connection.

Invalidates the current session and clears the stored token.

Method Syntax

client.invalidate(session)
ArgumentDescription
sessionAn optional session id.
client.invalidate()

Was this page helpful?