prisma-archive / graphcool-lib

A convenient tool to use in Graphcool functions to make requests against your Graphcool API
33 stars 6 forks source link

Error: The provided pat is not valid for project #22

Closed jdheeter closed 6 years ago

jdheeter commented 6 years ago
import { fromEvent, FunctionEvent } from "graphcool-lib"
const graphcool = fromEvent(event)
const api = graphcool.api("simple/v1")
//This one works only if I open up public permissions
const userId = await createGraphcoolUser(api, email, hash, username, image)
//This one returns error
const token = await graphcool.generateNodeToken(userId, "User")

I wrote more details here: https://www.graph.cool/forum/t/temp-root-token-in-function-does-not-have-full-permissions/1785/2

marktani commented 6 years ago

Upgrading to 0.1.4 from 0.1.0 resolved this issue.