Create a key
Reading or writing key definitions requires an admin key. |
Solution
Use the CreateKey
function:
{
ref: Ref(Keys(), "309732159785009664"),
ts: 1631642455800000,
database: Database("prydain"),
role: 'server',
secret: 'fnAETGPCH4ACAIf9avmbmbXAS7Yl-P-hDbw8QF9y',
hashed_secret: '$2a$05$U6/orFxArR4o/LmMBabTwuD.SEkkujaxj9q4gb0wRhYP5AXLJNadW'
}
The key’s secret is only ever shown once, in the response
from the CreateKey function. If you lose the secret,
delete the key and create a new one.
|
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!