Provides functionality used by the website, e.g. account creation, auth, etc.
Note: Use the FaunaDB web shell to run the following commands.
- Create an admin key
Important: Copy the
CreateKey({ role: "admin" })
secret
to a secure location. It is only visible once. - Create a server key
Important: Copy the
CreateKey({ role: "server" })
secret
to a secure location. It is only visible once.
- Create a
users
collectionCreateCollection({name: "users"})
- Create a
user_by_issuer
indexCreateIndex({ name: "user_by_issuer", source: Collection("users"), terms: [{ field: ["data", "issuer"]}], unique: true })