How should JWT be designed in a multi-center SaaS system where one account can belong to multiple centers? #1054
Answered
by
hoandevv
InternJava
asked this question in
Q&A
-
|
current design |
Beta Was this translation helpful? Give feedback.
Answered by
hoandevv
May 11, 2026
Replies: 1 comment
-
When user logs in: They authenticate as an account 👉 Important: JWT should represent one selected center at a time, not all. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
InternJava
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When user logs in:
They authenticate as an account
System returns:
access_token (JWT)
refresh_token
list of centers they belong to
👉 Important: JWT should represent one selected center at a time, not all.