Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Please Clarify Authentication with Define Access #164

Open
2 tasks done
JohnKinyanjui opened this issue Oct 25, 2024 · 0 comments
Open
2 tasks done
Labels
documentation Improvements or additions to documentation

Comments

@JohnKinyanjui
Copy link

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: '[email protected]',
    	pass: '123456',
    },
});

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@JohnKinyanjui JohnKinyanjui added the documentation Improvements or additions to documentation label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant