aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_oauth.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_oauth.erl')
-rw-r--r--src/ejabberd_oauth.erl9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ejabberd_oauth.erl b/src/ejabberd_oauth.erl
index 5f7818cf3..fbd311335 100644
--- a/src/ejabberd_oauth.erl
+++ b/src/ejabberd_oauth.erl
@@ -646,14 +646,7 @@ logo() ->
<<>>
end.
--spec opt_type(oauth_expire) -> fun((non_neg_integer()) -> non_neg_integer());
- (oauth_access) -> fun((any()) -> any());
- (oauth_db_type) -> fun((atom()) -> atom());
- (oauth_cache_life_time) -> fun((timeout()) -> timeout());
- (oauth_cache_size) -> fun((timeout()) -> timeout());
- (oauth_use_cache) -> fun((boolean()) -> boolean());
- (oauth_cache_misse) -> fun((boolean()) -> boolean());
- (atom()) -> [atom()].
+-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()].
opt_type(oauth_expire) ->
fun(I) when is_integer(I), I >= 0 -> I end;
opt_type(oauth_access) ->