I am trying to implement the use of an API service which requires JWT authentication for all its API calls.
I understand what JWT tokens are and how they are used, my issue is that I am writing a Swift app and can't quite figure out the process to generate the token so that I can attach it as a Bearer in my API calls.
- Can I generate the JWT token on the client side (swift app)?
- Create a Google Cloud Function to generate token then write back to Firebase to use in my API calls?