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

What's Subscription's Auth token? #21

Open
mayel opened this issue Dec 1, 2020 · 0 comments
Open

What's Subscription's Auth token? #21

mayel opened this issue Dec 1, 2020 · 0 comments

Comments

@mayel
Copy link

mayel commented Dec 1, 2020

I am getting the following error and not sure what I did wrong, it seems subscription :auth needs to be "AUTH", but that's not 16 bytes?

** (ArgumentError) Subscription's Auth token is not 16 bytes.
    (web_push_encryption 0.2.3) lib/web_push_encryption/encrypt.ex:132: WebPushEncryption.Encrypt.validate_length/3
    (web_push_encryption 0.2.3) lib/web_push_encryption/encrypt.ex:57: WebPushEncryption.Encrypt.encrypt/3
    (web_push_encryption 0.2.3) lib/web_push_encryption/push.ex:45: WebPushEncryption.Push.send_web_push/4

Let me know what else you need to debug?

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

No branches or pull requests

1 participant