From b9a8ebad1f27023ae21c7ff79193fa17d92fd9db Mon Sep 17 00:00:00 2001 From: moonlightnexus <68702919+moonlightnexus@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:44:59 +0530 Subject: [PATCH] Update index.ts --- src/index.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index aa663d2..a8389c8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -108,13 +108,12 @@ export class AuthLiteClient { this.secretKey ); // TODO Red swiggly - const sub = JSON.parse(decodeValue.sub); - // delete rtn["sub"]; - // rtn["email"] = sub["email"]; - // rtn["uid"] = sub["uid"]; - // return rtn; + const sub = rtn["sub"]; + delete rtn["sub"]; + rtn["email"] = sub["email"]; + rtn["uid"] = sub["uid"]; // TODO Red swiggly - return { email: sub.email, uid: sub.uid }; + return {rtn}; } else { throw new Error( `Request failed with status code: ${