Token Management
Store newly generated token
When user login into the mobile app, call PUT
API /v1/token
to store the push token in the IAMS user profile.
user_id
in the request body is the IAMS user id and device_id
is the mobile device id to support multiple devices
per user.
Example
Refresh existing token
For subsequent login, call the same PUT
API /v1/token
to refresh the push token in the IAMS user
profile.
Expire existing token
PTMGR service will automatically expire the token after certain period of time. Expire time can be configured in the PTMGR configuration.