peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
284 stars 108 forks source link

Invalid type specification for Token.for_scope/1 #31

Closed nicolasgarnil closed 6 years ago

nicolasgarnil commented 6 years ago

Problem

The type specification for the method Token.for_scope/1 specifies that it can return an :error atom but it never does

Solution

In which cases can Token.for_scope/1 return an error? If it can actually can return an error then it should be handled, if not, the type specification should be removed

peburrows commented 6 years ago

Closing as this was resolved by #34.