I have been trying to figure out how to do auth with define access. It seems only two fields are give username and password which is really confusing and really limits the usage of sdk at it is in the beta stages.
Here is an example in typescript
// With Record Access
const token = await db.signup({
namespace: 'surrealdb',
database: 'docs',
access: 'account',
// Also pass any properties required by the access definition
variables: {
email: 'info@surrealdb.com',
pass: '123456',
},
});
Is there an existing issue for this?
[X] I have searched the existing issues
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Description
I have been trying to figure out how to do auth with define access. It seems only two fields are give username and password which is really confusing and really limits the usage of sdk at it is in the beta stages.
Here is an example in typescript
Is there an existing issue for this?
Code of Conduct