Skip to content

Commit 1364251

Browse files
committed
fix: comment
1 parent 167697c commit 1364251

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hooks/auth.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export function useSessionMetadata<T = SessionMetadata>(
3939
: undefined
4040
}
4141

42+
/**
43+
* A utility function to predefine a useSessionMetadata hook.
44+
* @param cookieName The name of the session metadata cookie.
45+
* @returns An object containing the session metadata.
46+
*/
4247
useSessionMetadata.predefine = <SessionMetadata,>(
4348
cookieName = SESSION_METADATA_COOKIE_NAME,
4449
) => {

0 commit comments

Comments
 (0)