import { updateUserSession } from "https://deno.land/x/netzo@0.4.49/plugins/auth/utils/db.ts";
Updates the session ID of a given user in the database.
Examples
Example 1
Example 1
import { updateUserSession } from "../../../../auth/utils/db.ts";
await updateUserSession({
authId: "auth0|xxx",
sessionId: "xxx",
roles: ["admin"],
}, "yyy");
Parameters
user: AuthUser