Check out example codes for "IdentityServer vs JWT vs OAuth?". It will help you in understanding the concepts better.

Code Example 1

Link this one as good answers and links between scenarios and use cases

Learn ReactJs, React Native from akashmittal.com