aa29a09ebc
* feat(tokens): create embed-specific tokens * fix(tokens): repo functions and policy sketch * chore(authz): embed token policies and tests * chore(authz): fine * chore(gql): lint descriptions * fix(embedTokens): better api surface, repo structure * chore(embedTokens): test fixes * fix(embeds): check resource access * fix(embeds): use resource access util
12 lines
235 B
TypeScript
12 lines
235 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const createEmbedTokenMutation = gql`
|
|
mutation CreateEmbedToken($token: EmbedTokenCreateInput!) {
|
|
projectMutations {
|
|
createEmbedToken(token: $token) {
|
|
token
|
|
}
|
|
}
|
|
}
|
|
`
|