We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 167697c commit 1364251Copy full SHA for 1364251
src/hooks/auth.tsx
@@ -39,6 +39,11 @@ export function useSessionMetadata<T = SessionMetadata>(
39
: undefined
40
}
41
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
+ */
47
useSessionMetadata.predefine = <SessionMetadata,>(
48
cookieName = SESSION_METADATA_COOKIE_NAME,
49
) => {
0 commit comments