Commit Graph
18 Commits
Author SHA1 Message Date
Rushi Gandhi 225938d454 fix AppSettings.js import path 2024-10-22 10:36:15 +05:30
Rushi Gandhi af685f3c8b Merge branch 'develop' into 915-be-add-new-endpoint-for-refreshing-access-token 2024-10-22 10:26:49 +05:30
Rushi Gandhi 7c24136e6a Add testcases for new endpoint 2024-10-18 14:55:41 +05:30
Rushi Gandhi 19e47ff975 documented the new endpoint in the openapi.json 2024-10-18 10:21:57 +05:30
Rushi Gandhi 861adc0b96 fix error.method name in refreshAuthToken 2024-10-18 09:47:38 +05:30
Rushi Gandhi 9f861f9779 move token generation part into callback 2024-10-17 17:13:25 +05:30
Rushi Gandhi 043698e535 add endpoint to refresh auth token 2024-10-17 17:01:36 +05:30
Rushi Gandhi fe503353c5 remove handleError from verifyJWT 2024-10-17 12:26:34 +05:30
Rushi Gandhi 090f0df3e8 Merge branch 'develop' into 915-be-add-middeware-for-verification-of-refresh-token 2024-10-17 12:01:43 +05:30
Rushi Gandhi 3e9593fa23 Refactor verifyJWT middleware to handle refresh tokens alongside access token 2024-10-17 11:58:13 +05:30
Rushi Gandhi 412ac3312b use jwt.verify instead of jwt.decoded to verify authenticity of token 2024-10-16 20:20:08 +05:30
Rushi Gandhi e6068bfdc4 Add middleware that verifies refresh token 2024-10-16 18:27:29 +05:30
Rushi Gandhi 111f7d5a67 remove if/else by using ternary operator 2024-10-16 14:13:48 +05:30
Rushi Gandhi 7a3d2619f6 add testcases for refresh token 2024-10-16 12:46:44 +05:30
Rushi Gandhi 29ce8bb116 Refactor issueToken function for issueing the refresh token 2024-10-16 12:45:31 +05:30
Rushi Gandhi cd0160f421 Pass whole user object instead of just _id 2024-10-15 15:55:29 +05:30
Rushi Gandhi 581b6217a9 Update appSetting for refresh token & Update documentation 2024-10-15 14:11:47 +05:30
Rushi Gandhi 05c051ae3a Generate refresh token & add it to response 2024-10-15 12:30:24 +05:30