Ianleeclark / Paseto

An Elixir implementation of Paseto (Platform-Agnostic Security Tokens)
Other
95 stars 8 forks source link

Fix 'generate_token' spec return type #84

Closed MitchellJeppson closed 2 months ago

MitchellJeppson commented 3 months ago

Current return type: {:ok, String.t()} | {:error, String.t()}, but in the success case only the string is returned. I've updated the spec to reflect that. This is breaking dialyzer checks in our use of Paseto.generate_token/4.

Ianleeclark commented 2 months ago

I'll get a patch version released sometime tomorrow. thanks for the PR

Ianleeclark commented 2 months ago

https://hex.pm/packages/paseto/1.4.1