Files
speckle-server/packages/server/test/graphql/apiTokens.ts
T
Kristaps Fabians Geikins a329f91a44 fix(server): protecting against scope elevation in PAT creation (#1901)
* test DX improvements + tests for token:write scope

* protecting against scope elevation
2023-12-08 14:50:23 +02:00

14 lines
303 B
TypeScript

import { gql } from 'apollo-server-express'
export const createTokenMutation = gql`
mutation CreateToken($token: ApiTokenCreateInput!) {
apiTokenCreate(token: $token)
}
`
export const revokeTokenMutation = gql`
mutation RevokeToken($token: String!) {
apiTokenRevoke(token: $token)
}
`