Skip to content

Web Push Subscriptions returns 422 #135

Answered by unamashana
manuhazen asked this question in Questions
Discussion options

You must be logged in to vote

Sorry about the lack of proper documentation. This is one of our newer packages and we are running behind on a better README. From the screenshot I can see that you are using the user auth headers, whereas this endpoint requires a JWT token (it's an oddball). You can get that by fetching GET /config with user headers. Once you have it, you can use the token as illustrated on https://github.com/magicbell-io/webpush-test/blob/main/src/components/subscriber.tsx#L23.

Happy to answer any questions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by unamashana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Questions
Labels
None yet
2 participants