Installation
npm install --save @types/ag-auth
Summary
This package contains type definitions for ag-auth (https://github.com/SocketCluster/ag-auth).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ag-auth.
index.d.ts
import { Jwt, Secret, SignOptions, VerifyOptions } from "jsonwebtoken";
declare class AuthEngine {
verifyToken(signedToken: string | null, key: Secret, options?: VerifyOptions): Promise<Jwt>;
signToken(token: string | object | Buffer, key: Secret, options?: SignOptions): Promise<string | undefined>;
}
export = AuthEngine;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: @types/jsonwebtoken
Credits
These definitions were written by Daniel Rose.