-
Notifications
You must be signed in to change notification settings - Fork 35
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
access_token on Bitrix instance not working (always 401) #55
Comments
Hi! Do you mean other versions of this library or some other packages? |
Other versions of this library. Sure! i'm going to prepare an example in just a moment. |
I have the same problem.
|
I have the same problem when creating a Bitrix application and then authenticate with an OAuth=( https://stackblitz.com/edit/2bad-bitrix-401-error?file=index.js @mruniverse @foresh9 did you manage to solve the problem? |
Issue: The token addition hook uses the deprecated options.path property. Problematic file: addAccessToken.ts Issue reference: Got issue #955 Here's my version of the file where I replaced options.path with options.url.search:
@mrhyde Could you commit this fix to the repository? |
@friench I'll check it out tomorrow and try to get the fix published ASAP. |
@friench In the meantime, could you share how you generated the API token? With all the Bitrix updates over the past few years, I can't seem to find the exact page anymore. Much appreciated! |
The fix has been published to the beta branch (3.0.0-beta.0). You can try it by running |
When the Bitrix24 application communicates with my backend, it sends objects in the body and query of the POST request in the following format: Body:
Query:
Explanation of Key Parameters: These parameters are then used to initialize the client constructor. For more detailed information, refer to the official documentation here. |
Thanks. Can you confirm that beta version working okay for you? |
@mrhyde Yes, the new version works correctly. |
I've already tested in other versions and it works fine.
The text was updated successfully, but these errors were encountered: