Closed pedroassumpcao closed 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.
Guardian.resource_from_token/3
Guardian.resource_from_token/4
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.
{:error, any}
Guardian.returning_tuple/1
:heart:
During a project implementation I found out that the typespec for
Guardian.resource_from_token/3
andGuardian.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}
fromGuardian.returning_tuple/1
.