Skip to content

Add Stellar JWT authentication guard#19

Open
bingmokaka wants to merge 1 commit into
coopfinance:mainfrom
bingmokaka:stellar-jwt-auth-guard
Open

Add Stellar JWT authentication guard#19
bingmokaka wants to merge 1 commit into
coopfinance:mainfrom
bingmokaka:stellar-jwt-auth-guard

Conversation

@bingmokaka

Copy link
Copy Markdown

Summary

  • add Stellar wallet nonce and signature verification endpoints under /api/auth
  • issue JWTs after successful nonce verification and validate Bearer tokens with passport-jwt
  • protect POST /api/groups, POST /api/loans, and PATCH /api/loans/:id/status while leaving read endpoints public
  • add auth service unit coverage and fix existing TypeScript build issues surfaced by current dependencies

Testing

  • npm test -- --runInBand
  • npm run build

Closes #6

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.

Add JWT authentication guard to admin-only endpoints

1 participant