mojolingo/mojoauth.erl — pull request #2 by benlangfeld (2014-10-13 01:46:53+00:00)
Title: More specific return values from test_credentials

Separate success from ID assertion

Allows better pattern matching:

```erlang
case mojoauth:test_credentials(...) of
{ok,undefined} ->
%% Correct but no ID asserted
{ok,Id} ->
%% Correct with asserted ID
{expired} ->
%% Expired
{invalid} ->
%% Not yet expired but otherwise invalid
end
```

@polysics ?