I have my cake php aplication and I need connect to a api of my bank to access
data and to send data.
this is the first layer of authentication which uses x-www-form-urlencoded with
grant_type -> client_credentials
after that with access token I will can use to access the data from api.
But the problem is: every 4 hours the token expiry. How I can make a connection with form-urlencoded passing the info above in a way that persist and re-activate every 4 hours generating a token that can be accessed everywhere in my application.
Basically, how I can implement it? I searched through some docs but I only found only with JWT. and not with two types of authentication.