UNPKG

torrent-api-ts

Version:

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Build Status](https://travis-ci.org/Belphemur/torrent-api-ts.svg?branch=master)](https

24 lines (23 loc) 495 B
export interface TokenResponse { readonly token: string; } export declare class Token implements TokenResponse { readonly token: string; private date; private invalid; constructor(token: string); /** * Expired token * @returns {Token} */ static expired(): Token; /** * Has the token expired * @returns {boolean} */ hasExpired(): boolean; /** * Invalidate a token */ invalidate(): void; }