You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use scope users from the backend but creating a new connection instance for every user in the backend uses a lot of resources.
Describe the solution
It would be nice if I was able to pass the token with every request.
db.query('SELECT * FROM user',{},token)db.select('user',token)
This way it's possible to use scope users from the backend with the SDK. Right not it is not because all users share the same instance which uses the token which was set last.
Alternative methods
Making requests to the API myself
SurrealDB version
1.5.0 for linux on x86_64
SurrealDB.js version
1.0.0-beta.8
Contact Details
No response
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
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
I want to use scope users from the backend but creating a new connection instance for every user in the backend uses a lot of resources.
Describe the solution
It would be nice if I was able to pass the token with every request.
This way it's possible to use scope users from the backend with the SDK. Right not it is not because all users share the same instance which uses the token which was set last.
Alternative methods
Making requests to the API myself
SurrealDB version
1.5.0 for linux on x86_64
SurrealDB.js version
1.0.0-beta.8
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: