diff --git a/src/index.ts b/src/index.ts index 4900374..a6bd346 100644 --- a/src/index.ts +++ b/src/index.ts @@ -90,8 +90,12 @@ export default class uwuzu< bodyParsed = { ...bodyParsed, - token: this._token, + token: this._token ?? "", }; + + if (bodyParsed.token === "") + delete bodyParsed.token; + bodyParsed = JSON.stringify(bodyParsed); }