Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlightnexus authored Nov 21, 2023
1 parent 39cfc27 commit b9a8eba
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Check failure on line 111 in src/index.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find name 'rtn'.
delete rtn["sub"];

Check failure on line 112 in src/index.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find name 'rtn'.
rtn["email"] = sub["email"];

Check failure on line 113 in src/index.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find name 'rtn'.
rtn["uid"] = sub["uid"];

Check failure on line 114 in src/index.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find name 'rtn'.
// TODO Red swiggly
return { email: sub.email, uid: sub.uid };
return {rtn};

Check failure on line 116 in src/index.ts

View workflow job for this annotation

GitHub Actions / build

Type '{ rtn: any; }' is not assignable to type '{ email: string; uid: string; }'.

Check failure on line 116 in src/index.ts

View workflow job for this annotation

GitHub Actions / build

No value exists in scope for the shorthand property 'rtn'. Either declare one or provide an initializer.
} else {
throw new Error(
`Request failed with status code: ${
Expand Down

0 comments on commit b9a8eba

Please sign in to comment.