Did you notice that we imported fetchMe from vyou-core package in the previous example snippet? What is that?!
vyou-core provides the foundation for our VYou services, and since we love Typescript all is typed!
Though vyou-react purpose is to provide you as a developer an abstraction layer to make using VYou services in the ReactJs ecosystem really easy, you’ll find every single “low level” feature (eg. VYou API endpoints) in vyou-core. Also, the package exports a kind of generic fetchRequest which is an API call wrapper that handles all the authorization and authentication logic and management for you, including token renewal.