Athena

useFetchOAuthTokens

Mutation hook that fetches or refreshes OAuth provider token bundles from the auth client.

Import

import { useFetchOAuthTokens } from "@xylex-group/athena-auth-ui"

Also exported from: @xylex-group/athena-auth-ui/plugins

Details

  • Category: hook
  • Primary entrypoint: @xylex-group/athena-auth-ui
  • Public entrypoints: @xylex-group/athena-auth-ui, @xylex-group/athena-auth-ui/plugins
  • Source: packages/heroui/src/components/auth/workspace/hooks.ts

Notes

  • These hooks are built on top of React Query and the Athena auth client method surface.
  • Where the upstream method shape can vary, the hook tries both direct admin paths and auth.admin.* fallbacks.