Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code-with-antonio/nodebase
/ requireUnauth
Function
requireUnauth
src/lib/auth-utils.ts:17–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
};
16
17
export
const
requireUnauth =
async
() => {
18
const
session =
await
auth.api.getSession({
19
headers:
await
headers(),
20
});
21
22
if
(session) {
23
redirect(
"/"
);
24
}
25
};
Callers
2
Page
Function · 0.90
Page
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected