Files
speckle-server/packages/frontend-2/lib/auth/graphql/queries.ts
T
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP
2023-05-08 10:47:01 +03:00

33 lines
615 B
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
export const loginServerInfoQuery = graphql(`
query AuthServerInfo {
serverInfo {
...AuthStategiesServerInfoFragment
...ServerTermsOfServicePrivacyPolicyFragment
...AuthRegisterPanelServerInfo
}
}
`)
export const authorizableAppMetadataQuery = graphql(`
query AuthorizableAppMetadata($id: String!) {
app(id: $id) {
id
name
description
trustByDefault
redirectUrl
scopes {
name
description
}
author {
name
id
avatar
}
}
}
`)