mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 20:09:59 +00:00
9 lines
289 B
TypeScript
9 lines
289 B
TypeScript
import { useGetUserQuery } from '../graphql/user.generated';
|
|
|
|
/**
|
|
* Fetch a CorpUser object corresponding to the currently authenticated user.
|
|
*/
|
|
export function useGetAuthenticatedUser() {
|
|
return useGetUserQuery({ variables: { urn: localStorage.getItem('userUrn') as string } });
|
|
}
|