@types/ag-auth
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Credits

These definitions were written by Daniel Rose.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ag-auth

Weekly Downloads

3,582

Version

1.0.3

License

MIT

Unpacked Size

3.3 kB

Total Files

5

Last publish

Collaborators

  • types