surrealdb / surrealdb.go

SurrealDB SDK for Golang
https://surrealdb.com
Apache License 2.0
244 stars 66 forks source link

Documentation: Please Clarify Authentication with Define Access #164

Open JohnKinyanjui opened 3 weeks ago

JohnKinyanjui commented 3 weeks ago

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

// 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?

Code of Conduct