SR
Click to open github profile
Hooks

useCraftAuthToken

Learn how to use the useCraftAuthToken hook.


This hook returns the Bearer auth token defined in your /libs/query-api.ts.

Usage

const authToken = useCraftAuthToken();

Type

function useCraftAuthToken(): string;

Copyright © 2025 Samuel Reichör