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

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

Deno-powered framework for building business web apps
Go to Latest
function updateUserSession
import { updateUserSession } from "https://deno.land/x/netzo@0.3.91/core/plugins/auth/utils/db.ts";

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

Examples

Example 1

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

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

Parameters

user: AuthUser
sessionId: string