Skip to content

Function: getAuthToken()

function getAuthToken(): Promise<string | undefined>;

Defined in: next.ts:46

Gets the current auth token from Next.js cookies Useful when you need to pass the token to client components

Promise<string | undefined>