refactor(emqx_authn_jwt_schema): add alias for verify_claims

verifiy_claims is a list after converted, but input is a map
This commit is contained in:
Zaiming (Stone) Shi 2023-11-12 11:35:08 +01:00
parent 021f7e6b49
commit a32cd20758
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ refresh_interval(validator) -> [fun(I) -> I > 0 end];
refresh_interval(_) -> undefined.
verify_claims(type) ->
list();
%% user input is a map, converted to a list of {binary(), binary()}
typerefl:alias("map", list());
verify_claims(desc) ->
?DESC(?FUNCTION_NAME);
verify_claims(default) ->