I'm setting up guardian for the first time with a phoenix app. I'm hitting a road block with the secret key in the Guardian Config. I'm not understanding where to keep the secret key and how exactly to generate it? I basically copied and pasted from the readme and I'm sure that's not correct but I just can't seem to find decent docs on this problem. Here is what I tried to run into when trying to create a session with a user from the database.
erlang error: {:not_supported, ["P-521", :HS512]}
Here is my current config file which is obviously wrong.
config :guardian, Guardian,
issuer: "PerriAir",
ttl: { 30, :days },
verify_issuer: true, # optional
secret_key: %{
"crv" => "P-521",
"d" => "axDuTtGavPjnhlfnYAwkHa4qyfz2fdseppXEzmKpQyY0xd3bGpYLEF4ognDpRJm5IRaM31Id2NfEtDFw4iTbDSE",
"kty" => "EC",
"x" => "AL0H8OvP5NuboUoj8Pb3zpBcDyEJN907wMxrCy7H2062i3IRPF5NQ546jIJU3uQX5KN2QB_Cq6R_SUqyVZSNpIfC",
"y" => "ALdxLuo6oKLoQ-xLSkShv_TA0di97I9V92sg1MKFava5hKGST1EKiVQnZMrN3HO8LtLT78SNTgwJSQHAXIUaA-lV"
},
serializer: PerriAir.GuardianSerializer
Any tips on how to generate the proper key would be great Thank you!