...
Expand | ||
---|---|---|
| ||
|
Solution 1:
Pros:
Cons:
...
user/search API to be intercepted at portal backend.
A. portal backedn to save token into current user’s session.
B. Only user related information is send to front end.User initiated switch.
A.Portal backed maps the saved data of switched user.
B.Deletes other user dataSave JWT token in session for furthur use
Add headers for all required API and send token
Expand | ||
---|---|---|
| ||
|
...
|
...
|
Pros:
Simple to do.
Cons:
...
Managing session data each time when profile is switched.
...
Cons:
Solution 2:
Pros:
Cons: