Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
[fix] Type missing of Authing Guard
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Jun 1, 2024
1 parent fee5879 commit fc4a593
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 16 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/turndown": "^5.0.4",
"authing-js-sdk": "^4.23.51",
"buffer": "^6.0.3",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.5",
"parcel": "~2.12.0",
"prettier": "^3.2.5",
"process": "^0.11.10",
"ts-jest": "^29.1.3",
"ts-jest": "^29.1.4",
"tsx": "^4.11.0",
"typescript": "~5.4.5",
"workbox-cli": "^7.1.0"
Expand Down
98 changes: 84 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/model/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class UserModel extends BaseModel {
get sessionExpired() {
const { session } = this;

return !session || +new Date(session.tokenExpiredAt) < Date.now();
return !session || +new Date(session.tokenExpiredAt!) < Date.now();
}

signIn(user: User) {
Expand Down

1 comment on commit fc4a593

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for git-pager ready!

✅ Preview
https://git-pager-jhlwg3ge1-techquerys-projects.vercel.app

Built with commit fc4a593.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.