Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function updateUserSession
import { updateUserSession } from "https://deno.land/x/netzo@0.2.94/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