SurrealDB Docs Logo

Enter a search query

.info()

This method returns the record of an authenticated scope user.

Method Syntax
db.info<T>()

Example usage

const user = await db.info();