Module hex_api_auth
Function Index
test/2 | Test an auth key against a given domain and resource. |
Function Details
test/2
test(Config::hex_core:config(), X2::map()) -> hex_api:response()
Test an auth key against a given domain and resource.
Examples:
1> Params = #{domain => <<"repository">>, resource => <<"gustafson_motors">>}.
2> hex_api_auth:test_key(hex_core:default_config(), Params).
{ok,{204, ..., nil}}