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

Use modern JavaScript syntax #187

Merged
merged 1 commit into from
Aug 5, 2023
Merged

Conversation

jonkoops
Copy link
Contributor

@jonkoops jonkoops commented Aug 5, 2023

Use more modern JavaScript syntax where possible, namely:

@jonkoops jonkoops requested a review from a team as a code owner August 5, 2023 17:49
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Took the liberty of changing the name of this file so the separators match the other files in the project.

@@ -20,11 +20,7 @@ export interface JwtPayload {
jti?: string;
}

export class InvalidTokenError extends Error {
constructor(message: string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this constructor only passes the same arguments as the class it extends, I've removed it so that it will fall back to the parent constructor.

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've also changed the names of the variables here from snake case to camel case, so it matches the rest of the project.

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