Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.40/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