There is an example of a todo app using passwordless authentication using magic.link service.
I have tried to recreate the example using GraphQL with a schema like this:
type User {
email: String! @unique
todos: [Todo] @relation
}
type Todo {
title: String!
completed: Boolean!
user: User!
}
How do I create a collection with permissions using the GraphQL schema similar to the FQL example?
Everything works fine in the playground with the default authorization key, but when I replace the key issued with Tokens() I get “Invalid authorization header.” error.
What kind of security roles do I need to create for this usecase?