Link to the repository
[Only for premium members]
[Only for premium members]
Now that our authentication is completed, we can work on consuming API tokens within our application. Tokens are important to limit access to our application.
In this lesson, we will:
Let's start by refactoring our API service to use the token.
Currently, we have no way to pass the token to our API service, so let's add that:
Note: We will declare the token as a [non-nullable variable] using the...