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

x/appwrite/mod.ts>Users#createJWT

[READ-ONLY] Official Appwrite Deno SDK 🦕
Latest
method Users.prototype.createJWT
Re-export
import { Users } from "https://deno.land/x/appwrite@12.1.0/mod.ts";

Create user JWT

Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.

Parameters

userId: string
optional
sessionId: string
optional
duration: number