-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Bug]: It seems that the RestAPIAuthentication type has changed from Bearer to Basic. #84
Comments
Same problem for me. Start receiving a lot of 401 error's. Support chat checked my code and said there was a change from Except i think this is a breaking change and should have been announced prominent (or did i missed it?), this should be adjusted here asap |
I created a PR to address this. Meanwhile i was able to create a workaround, but only because i use |
What is going on with this library, seems abandoned |
Is there any news to update auth header from bearer to header? OneSignal is requiring the change before 4th Dec
|
This seems to be par for the course for OneSignal.
As somebody who played a major part in recommending OneSignal to the company I work for, I now feel that I have made a mistake. They simply have not got their act together. |
Fully agreed. It is completely embarassing how this change is treated. It is going to be a lot of fun when everything starts breaking in 4 weeks. Somehow I am not surprised, yet still disappointed.... |
I got a response from OneSignal about this matter 😞 "Our Server Side SDKs are not currently recommended for production. They are not currently being worked on, and it's likely that they will be overlooked for this change. We advise switching to use the REST API directly. I will reach out to the Engineering team to ensure this is made clearer, and if they can share more information on when they expect these to be production-ready. OneSignal" |
Meanwhile new users who develop in |
I would like to know, if we are to now use the REST API directly, where we are supposed to get the types from? Sure we can infer them from the current documentation, but what happens when they change? It doesn't look like the REST API is even versioned to protect clients from breaking changes. |
Hey everyone, Apologies for the radio silence on this issue as the team has been heads down on other parts of our SDK.
Completely agree on these points and moving forward, our team will be prioritizing better support for our client libraries. In the meantime, we recommend using the REST API directly for user-centric endpoints until we get the chance to add them to the SDKs. Please keep an eye on our releases for future updates. In regards to OP's issue, I tested the latest version of the SDK and can confirm it is working regardless of the auth prefix. Please respond back if this is still not the case for you. |
That is only because the deadline for changing to the new auth method is 4th December 2025. After that, this SDK in its current guise will stop working. |
@kpturner For what it's worth, the December 4th deadline only applies to the Update User, View User, and Delete User endpoints when targeting users via Aliases. Targeting user by Our team is working on patching a fix for that now. |
For us, where we only use it to fetch user information via OneSignal support are pushing people to access the REST API directly and drop the use of the various SDKs - so we are getting mixed messages. Once you drop the SDK and access the API directly you are fairly unlikely to return to it. However, accessing the REST API directly wthout and SDK means:
|
Quick update: we released 5.0.0-alpha-02 to address this point. Our team will be looking to address the inconsistencies with the auth prefix in the near future -- please let me know if you have any questions. |
Symptom
I have been receiving a 401 error response when calling getUser method.
In Document, we confirmed that the authentication type is Basic.
Related Links
auth.ts
The text was updated successfully, but these errors were encountered: