Files
api/web/store/account.fragment.ts
Pujit Mehrotra f542c8e0bd fix: parsing of ssoEnabled in state.php (#1455)
read `ssoSubIds` in state.php from `api.json`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
  * Added a new query to check if Single Sign-On (SSO) is enabled.
* Updated UI components to dynamically reflect SSO availability via live
data.
* **Refactor**
* Streamlined internal handling of SSO status detection for improved
reliability and maintainability.
* **Tests**
* Enhanced tests for SSO button behavior with mocked live data and added
edge case coverage for SSO callback handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-07-02 10:24:38 -04:00

20 lines
404 B
TypeScript

import { graphql } from '~/composables/gql/gql';
export const CONNECT_SIGN_IN = graphql(/* GraphQL */`
mutation ConnectSignIn($input: ConnectSignInInput!) {
connectSignIn(input: $input)
}
`);
export const CONNECT_SIGN_OUT = graphql(/* GraphQL */`
mutation SignOut {
connectSignOut
}
`);
export const SSO_ENABLED = graphql(/* GraphQL */`
query IsSSOEnabled {
isSSOEnabled
}
`);