Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

An isomorphic Javascript library for GoTrue.
Latest
method GoTrueApi.prototype.setAuthCookie
Re-export
import { GoTrueApi } from "https://deno.land/x/gotrue@3.0.0/src/index.ts";

Set/delete the auth cookie based on the AuthChangeEvent. Works for Next.js & Express (requires cookie-parser middleware).

Parameters

req: any
res: any