Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

create

import { create } from "https://raw.githubusercontent.com/timonson/djwt/master/mod.ts";

Takes Header, Payload and CryptoKey and returns the url-safe encoded jwt.

async function create(
header: Header,
payload: Payload,
key: CryptoKey | null,
): Promise<string>;
§
create(header: Header, payload: Payload, key: CryptoKey | null): Promise<string>
[src]

§Parameters

§
key: CryptoKey | null
[src]

§Return Type

§
Promise<string>
[src]