SurrealDB Docs Logo

Enter a search query

.Invalidate()

Invalidates the authentication for the current connection.

Method Syntax
db.Invalidate()

Example usage

// And we can later on invalidate the token if desired defer func(token string) { if err := db.Invalidate(); err != nil { panic(err) } }(token)

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install