In Magento [2.2.4] internet API once I go username and password then it generates token for that particular buyer (Which is just legitimate for 1 hour – it’s configurable from Magento admin)
which returns token.
After producing token, after we go that token in header.
Authorization :: Bearer *Token Worth*
Which returns buyer particulars.
The above case I defined is working tremendous for webAPI in magento2 which I examined in POSTMAN.
Now the case is,
Each hour regeneration of token and after that login once more each hour
is just not logical for Cellular Software.
Then how Magento manages consumer login knowledge and authentication in Cellular
utility, whether it is developed API As per Service Contracts
- How lengthy ought to I permit my entry tokens to exist earlier than
it expires in Cellular Software?
- I don’t wish to pressure my customers to re-authenticate each hour in Cellular Software.
- How you can correctly handle your OAuth2 API token life-cycle for Cellular Software.
Making modifications in Entry Token Lifetime hours wouldn’t be logical resolution, As a result of Software and internet ought to have completely different lifetime hours of Token