danhper / danhper/elixir-web-push-encryption

What's Subscription's Auth token?

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
62
Forks
43
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.