Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function updateUserSession
import { updateUserSession } from "https://deno.land/x/netzo@0.2.84/plugins/portals/utils/db.ts";

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

Examples

Example 1

import { updateUserSession } from "netzo/plugins/portals/utils/db.ts";

await updateUserSession({
  login: "john",
  sessionId: "xxx",
  role: "admin",
}, "yyy");

Parameters

user: User
sessionId: string