diff --git a/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java b/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java index 37d0b6c54..06d70bfe0 100644 --- a/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java +++ b/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java @@ -141,7 +141,7 @@ public void onUserStateChange(@NonNull UserChangedState state) { } }); - OneSignal.addUserJwtInvalidatedListner(new IUserJwtInvalidatedListener() { + OneSignal.addUserJwtInvalidatedListener(new IUserJwtInvalidatedListener() { @Override public void onUserJwtInvalidated(@NonNull UserJwtInvalidatedEvent event) { Log.v(Tag.LOG_TAG, "onUserJwtInvalidated fired with ID:" + event.getExternalId()); diff --git a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt index 46d43ea29..07ff05e84 100644 --- a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt +++ b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt @@ -1,7 +1,7 @@ package com.onesignal /** - * Implement this interface and provide an instance to [OneSignal.addUserJwtInvalidatedListner] + * Implement this interface and provide an instance to [OneSignal.addUserJwtInvalidatedListener] * in order to receive control when the JWT for the current user is invalidated. * * @see [User JWT Invalidated Event | OneSignal Docs](https://documentation.onesignal.com/docs/identity-verification) diff --git a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt index ec686a9d1..2d9c14cf3 100644 --- a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt +++ b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt @@ -201,12 +201,12 @@ object OneSignal { } @JvmStatic - fun addUserJwtInvalidatedListner(listener: IUserJwtInvalidatedListener) { + fun addUserJwtInvalidatedListener(listener: IUserJwtInvalidatedListener) { oneSignal.addUserJwtInvalidatedListener(listener) } @JvmStatic - fun removeUserJwtInvalidatedListner(listener: IUserJwtInvalidatedListener) { + fun removeUserJwtInvalidatedListener(listener: IUserJwtInvalidatedListener) { oneSignal.removeUserJwtInvalidatedListener(listener) }