UNPKG

@ariusii/intersect.ts

Version:

The Intersect Engine API Client Library based on TS.

32 lines 1.38 kB
/** * This is the Authentification Class, it contains all the methods to handle the authentification and token. * Those actions do not require any Query Role. * @class Authentification * @link https://docs.freemmorpgmaker.com/en-US/api/v1/endpoints/authentication.html * @author AriusII */ export declare class Authentification { private _url; private _token; private _refreshToken; constructor(url: string, token: string, refreshToken: string); /** * /!\ CAUTION /!\ This method can delete your CURRENT TOKEN KEY, so be careful, or you will not be able to use the API anymore. * It takes a url and a token, and returns a fetch request to the url with the token in the body. * @returns The response from the server. */ refreshToken(): Promise<any>; /** * It deletes a token from a specific user. * @param {string} user - The user you want to delete the token for. * @returns The response from the server. */ deleteToken(user: string): Promise<any>; /** * It deletes the token information from the specified token id, from a specific user. * @param {string} user - The user you want to delete the token for. * @returns The response from the server. */ deleteTokenById(user: string): Promise<any>; } //# sourceMappingURL=authentification.d.ts.map