PhoenixApiToolkit.TestHelpers.gen_jwk

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

gen_jwk(overrides \\ [])

View Source

Specs

gen_jwk(map() | keyword()) :: map()

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

The default is the first key of test_jwks/0.

Examples

iex> gen_jwk()["kid"]
"my_test_key"

iex> gen_jwk(kid: "other key")["kid"]
"other key"