MCPcopy
hub / github.com/cursor/community-plugins / getSession

Function getSession

apps/cursor/src/utils/supabase/auth.ts:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { createClient } from "./server";
2
3export async function getSession() {
4 const supabase = await createClient();
5 const {
6 data: { session },
7 } = await supabase.auth.getSession();
8 return session;
9}

Callers 10

safe-action.tsFile · 0.90
ProfileFunction · 0.90
CompanyFunction · 0.90
FollowersListFunction · 0.90
SettingsContentFunction · 0.90
FollowingListFunction · 0.90
EditMCPContentFunction · 0.90
EditPluginContentFunction · 0.90
NewPluginGateFunction · 0.90
AdminPluginsContentFunction · 0.90

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected