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

x/netzo/plugins/auth/utils/db.ts>updateUserSession

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function updateUserSession
import { updateUserSession } from "https://deno.land/x/netzo@0.4.72/plugins/auth/utils/db.ts";

Updates the session ID of a given user in the database.

Examples

Example 1

import { updateUserSession } from "../../../../auth/utils/db.ts";

await updateUserSession({
  authId: "auth0|xxx",
  sessionId: "xxx",
  roles: ["admin"],
}, "yyy");

Parameters

user: AuthUser
sessionId: string