PhoenixApiToolkit.TestHelpers.gen_jws

You're seeing just the function gen_jws, go back to PhoenixApiToolkit.TestHelpers module for more information.
Link to this function

gen_jws(overrides \\ [])

View Source

Specs

gen_jws(map() | keyword()) :: map()

Generate a JSON Web Signature for testing purposes. See gen_jwt/2 for details.

The defaults are the "alg" and "kid" values of the first key of test_jwks/0.

Examples

iex> gen_jws() %{"alg" => "RS256", "kid" => "my_test_key"}

iex> gen_jws(alg: "RS512")["alg"] "RS512"