Zend certified PHP/Magento developer

How to reuse token bewteen magento and other jwt based platforms

I am using a customised login where token is generated from AWS Cognito. i am also adding some jwt claims to make the token usable with integration such as apollo .i want to use the same token for customer to access magento instead of creating separate token using username and password.

i want to use token for rest api and also i need customer-token

Is there any way to achieve this? am i missing something?