How to cache the authentication using auth_check middleware with goplugin?

Thanks for the reply @Ubong

I have a few questions

  1. if we wrap it as a gRPC plugin then we need to host it in some server or can be included in Tyk Gateway itself
  2. If we use the gRPC plugin then we need to use coprocess as authentication in auth type and pass the URL for the gRPC server right?
  3. if we cache the authentication, how will that token generated in the plugin be set in the request header for the request using the auth cache?