1.0.3 • Published 6 months ago
@types/ag-auth v1.0.3
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
// Type definitions for ag-auth 1.0
// Project: https://github.com/SocketCluster/ag-auth
// Definitions by: Daniel Rose <https://github.com/DanielRose>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.7
import { VerifyOptions, Secret, SignOptions, Jwt } 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: Sat, 04 Sep 2021 09:01:22 GMT
- Dependencies: @types/jsonwebtoken
- Global values: none
Credits
These definitions were written by Daniel Rose.