ai-cfia / membrane-backend

Membrane Backend: A centralized authentication service for Single Sign-On (SSO) enabling seamless token-based email verification across multiple client applications.
MIT License
1 stars 0 forks source link

Refactor jwt_utils #60

Open k-allagbe opened 11 months ago

k-allagbe commented 11 months ago

Currently jwt_utils has too many responsabilities. It should focus only on creating, verifying and decodeing JWT tokens.

k-allagbe commented 10 months ago

@rngadam as discussed, we could extract the jwt processings that are common to membrane-client into a common folder. I could offload the server specific responsibilities to another module and push jwt_util into common. Thoughts?

rngadam commented 10 months ago

yes, but actually when I said a common sub-module, I didn't necessarily mean literally a sub-module named common. I think it would make more sense to have a membrane.jwt submodule to put common jwt functions that should be present both on the client and server together?