Closed devleejb closed 1 week ago
The changes in this pull request primarily involve enhancements to error handling and token management within the backend and frontend services. The CheckService
class has been updated to include new methods for validating access tokens and improved response handling. The FilesController
has been annotated for better API documentation. Additionally, the frontend has introduced new classes for handling refresh tokens and a mutation hook for refreshing access tokens, alongside modifications to existing hooks for better error management and token retrieval.
File Path | Change Summary |
---|---|
backend/src/check/check.service.ts |
Added methods checkDefaultAccessToken and checkSharingAccessToken ; improved error handling. |
backend/src/files/files.controller.ts |
Added @ApiTags("Files") decorator for API documentation. |
frontend/package.json |
Updated yorkie-js-sdk dependency version from 0.5.4 to 0.5.5 . |
frontend/src/hooks/api/types/user.d.ts |
Added RefreshTokenRequest and RefreshTokenResponse classes for token management. |
frontend/src/hooks/api/user.ts |
Introduced useRefreshTokenMutation hook; modified useGetUserQuery to utilize the new hook. |
frontend/src/hooks/useYorkieDocument.ts |
Updated getYorkieToken and createYorkieClient functions for improved token management. |
Objective | Addressed | Explanation |
---|---|---|
Support for additional Status Codes in Authorization Webhook (#395) | ✅ |
JwtAuthGuard
class, similar to changes in CheckService
.CheckService
.enhancement 🌟
In the garden where tokens play,
A rabbit hops, brightening the day.
With refresh and checks, we leap and bound,
New paths of access we have found.
Errors handled with grace and cheer,
In our code, the future is clear! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What this PR does / why we need it:
yorkie-js-sdk
tov0.5.5
Which issue(s) this PR fixes:
Fixes #395
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation:
Checklist:
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
Chores
yorkie-js-sdk
to improve stability.