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

Handle customer AuthToken #37

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Handle customer AuthToken #37

merged 2 commits into from
Sep 9, 2024

Conversation

allevo
Copy link
Collaborator

@allevo allevo commented Aug 30, 2024

Ref: https://linear.app/oramasearch/issue/ORM-1644/protect-searches-from-un-desiderated-users
Fix: https://linear.app/oramasearch/issue/ORM-1645/define-interface-for-orama-js-sdk

const client = new OramaClient({ ... });
client.setAuthToken("...");
client.setOnAuthTokenExpired(() => client.setAuthToken("...."));
const res = await client.search({ ... })

@allevo allevo merged commit c57ecee into main Sep 9, 2024
1 check passed
@allevo allevo deleted the feat/manage-auth-token branch September 9, 2024 08:16
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

Successfully merging this pull request may close these issues.

2 participants