Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve error message when fail to get keys from torus.js #310

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

tanguyenvn
Copy link
Contributor

BEFORE

  • Custom Auth error
    image
  • Auth service error
    image

AFTER

  • Custom Auth error
    image
  • Auth service error
    image

@@ -0,0 +1,26 @@
export const serializeError = async (error: unknown): Promise<Error> => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied this method from Auth service

Copy link
Member

@chaitanyapotti chaitanyapotti left a comment

Choose a reason for hiding this comment

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

lgtm

@chaitanyapotti chaitanyapotti merged commit 4dd6842 into master Mar 15, 2024
1 check passed
@chaitanyapotti chaitanyapotti deleted the feat/improve-error-msg branch March 15, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants