npm.io
1.0.3 • Published 2 years ago

@types/ag-auth

Licence
MIT
Version
1.0.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.