• Hook that provides utility functions for Tailor Platform-specific operations.

    Returns {
        getCurrentUser: (() => UserInfo);
    }

    • getCurrentUser: (() => UserInfo)

      Suspense function to retrieve the signed in user's information.

      Example

      "use client";
      import { usePlatform } from "@tailor-platform/auth/client";

      const Component = async () => {
      const { getCurrentUser } = usePlatform();

      const user = getCurrentUser();
      };

Generated using TypeDoc