Search the docs
Languages
/
Mojo
Methods
The authenticate() method for the SurrealDB Mojo SDK authenticates the current connection with a token.
Authenticates the current connection with a token, and stores it on the client for subsequent requests.
Method Syntax
client.authenticate(token, session)
token
session
client.authenticate("eyJhbGciOi...")
Authentication
invalidate()
Was this page helpful?
Previous
api
Next
begin_transaction