->signup()
Signs up to a specific authentication scope.
Arguments
| Arguments | Description |
|---|---|
namespace
| The namespace to sign up to |
database
| The database to sign up to |
scope
| The scope to sign up to. Also pass any variables used in the scope. Only supported in SurrealDB 1.x |
access
=" />
| The access to sign in to. Also pass any variables used in the access. Only supported from SurrealDB 2.x onwards |
Example usage
You can invalidate the authentication for the current connection using the invalidate() method.