lynx-framework
Version:
lynx is a NodeJS framework for Web Development, based on decorators and the async/await support.
8 lines (7 loc) • 302 B
TypeScript
/**
* Token verification. It wraps the jsonwebtoken library
* @param token the token to verify and decode
* @param sectet the secret necessary to decode the token
* @return the decoded token, or an error.
*/
export declare function verifyJwtToken(token: string, secret: string): Promise<unknown>;