Skip to main content
Module

x/supabase/mod.ts>GoTrueApi#getUserByCookie

An isomorphic Javascript client for Supabase.
Go to Latest
method GoTrueApi.prototype.getUserByCookie
Re-export
import { GoTrueApi } from "https://deno.land/x/supabase@1.3.1/mod.ts";

Get user by reading the cookie from the request. Works for Next.js & Express (requires cookie-parser middleware).

Parameters

req: any

Returns

Promise<{ user: User | null; data: User | null; error: Error | null; }>