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

Support Token authentication with HTTP #17

Open
AlbertMarashi opened this issue Mar 22, 2024 · 0 comments
Open

Support Token authentication with HTTP #17

AlbertMarashi opened this issue Mar 22, 2024 · 0 comments

Comments

@AlbertMarashi
Copy link

AlbertMarashi commented Mar 22, 2024

Currently the SurrealDbHttpDialect do not support using a token field in the config.

This is an option with the ExperimentalSurrealHTTP

    const db = new ExperimentalSurrealHTTP()
    await db.connect(connectionString,{
        namespace,
        database,
    })


    if (token) db.authenticate(token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant