Updated function documentation specification.

main
absc 2024-08-07 20:26:38 +00:00
parent 3b9693e276
commit df09a192b0
1 changed files with 3 additions and 1 deletions

View File

@ -74,12 +74,14 @@ Authenticate a user and return a new cookie for the new session.
Spec: Spec:
``` ```
-spec authenticate(User, Password, Cookies, Bucket) -> {true, Cookie} | false | {error, Reason} when -spec authenticate(User, Password, Cookies, Bucket) -> {true, Cookie, Validity} |
false | {error, Reason} when
User :: binary(), User :: binary(),
Password :: binary(), Password :: binary(),
Cookies :: atom(), Cookies :: atom(),
Bucket :: atom(), Bucket :: atom(),
Cookie :: binary(), Cookie :: binary(),
Validity :: non_neg_integer(),
Reason :: term(). Reason :: term().
``` ```