a329f91a44
* test DX improvements + tests for token:write scope * protecting against scope elevation
14 lines
303 B
TypeScript
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)
|
|
}
|
|
`
|