Skip to content

Commit

Permalink
Fix a typo in addUserJwtInvalidatedListener
Browse files Browse the repository at this point in the history
  • Loading branch information
jinliu9508 committed Nov 22, 2024
1 parent 00f6977 commit a9442ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a9442ab

Please sign in to comment.