ueberauth / guardian

Elixir Authentication
MIT License
3.44k stars 381 forks source link

Complement typespec for resource_from_token #461

Closed pedroassumpcao closed 6 years ago

pedroassumpcao commented 6 years ago

During a project implementation I found out that the typespec for Guardian.resource_from_token/3 and Guardian.resource_from_token/4 is incomplete.

The current typespec only accounts for success case but when the token can't be decoded it returns {:error, any} from Guardian.returning_tuple/1.

scrogson commented 6 years ago

:heart: