Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/gotrue/src/index.ts>GoTrueApi#getUserByCookie

An isomorphic Javascript library for GoTrue.
Latest
method GoTrueApi.prototype.getUserByCookie
Re-export
import { GoTrueApi } from "https://deno.land/x/gotrue@3.0.0/src/index.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; }>