Skip to content

Fix: Convert authentication request payload to camelCase for backend#363

Open
FrankOHara43 wants to merge 1 commit intofossology:mainfrom
FrankOHara43:camel-casing-in-auth-setup
Open

Fix: Convert authentication request payload to camelCase for backend#363
FrankOHara43 wants to merge 1 commit intofossology:mainfrom
FrankOHara43:camel-casing-in-auth-setup

Conversation

@FrankOHara43
Copy link

Description

Updated the authentication module to use camelCase property names in the token request payload to match the backend API's requirements.

Changes

  • Modified auth.js to use tokenExpire (camelCase) instead of token_expire (snake_case) when constructing the token request body.
  • Updated auth.test.js test assertions to verify the corrected camelCase property names in the token payload.

How to test

It occurs everytime you try to set up the project and run it locally.

@FrankOHara43
Copy link
Author

@GMishx please take a look.

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.

1 participant