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

generateSecuredApiKey are not updated. #1556

Closed
frmsaul opened this issue Sep 24, 2024 · 1 comment
Closed

generateSecuredApiKey are not updated. #1556

frmsaul opened this issue Sep 24, 2024 · 1 comment
Labels

Comments

@frmsaul
Copy link

frmsaul commented Sep 24, 2024

Description

This doc isn't updated

https://www.algolia.com/doc/api-reference/api-methods/generate-secured-api-key/?client=javascript#examples

Code has changed and now it breaks:

generateSecuredApiKey: ({ parentApiKey, restrictions = {} }: GenerateSecuredApiKeyOptions): string => {

Would really appreciate it if you guys have examples of this working. I'm struggling with it and can't get it to actually use the filters.

Client

Search

Version

7

Relevant log output

No response

@frmsaul frmsaul added the bug label Sep 24, 2024
@frmsaul frmsaul changed the title [bug]: generateSecuredApiKey are not updated. Sep 24, 2024
@shortcuts
Copy link
Member

Hey, you can find some docs here: https://www.algolia.com/doc/libraries/javascript/v5/helpers/

Let me know if that helps! Or don't hesitate to provide your v4 snippet, I can help you converting it to v5

@shortcuts shortcuts pinned this issue Oct 7, 2024
@shortcuts shortcuts unpinned this issue Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants