You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The claims/0 spec is defined as claims() :: %{required(binary()) => term(). I'm curious why the claims you pass into Joken functions need to have binary keys. It also works with atom keys but dialyzer fails.
The text was updated successfully, but these errors were encountered:
This is probably just because claims are JSON data and that is how JSON libraries usually encode to the format. Nothing really "needed" but thought of as a good practice when dealing with JSON in general.
Do you have a particular use case that atom keys would be a nice fit?
The
claims/0
spec is defined asclaims() :: %{required(binary()) => term()
. I'm curious why the claims you pass into Joken functions need to have binary keys. It also works with atom keys but dialyzer fails.The text was updated successfully, but these errors were encountered: