From 678fb71a7f4cf1ad34c2746fdaa3690a13df4fe4 Mon Sep 17 00:00:00 2001 From: Srinidhi Date: Mon, 5 Sep 2022 22:33:26 +0530 Subject: [PATCH] feat(unvired-cordova-sdk): Add new function to regenrate the JWT Token (#4291) --- .../plugins/unvired-cordova-sdk/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts b/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts index ae2d739a..17526685 100644 --- a/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts +++ b/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts @@ -1663,4 +1663,13 @@ export class UnviredCordovaSDK extends AwesomeCordovaNativePlugin { registerForPushNotification(): Promise { return; } + + /** + * Regenerates the JWT token used for communicating with the UMP server. + * The updated token will be available via the registered NotificationListener's callback |JWTTokenReceived| + */ + @Cordova() + refreshJWTToken(): Promise { + return; + } }