Skip to content

Commit

Permalink
Merge pull request #2218 from OneSignal/typo_jwt_listener
Browse files Browse the repository at this point in the history
Fix a typo in the public API addUserInvalidatedListener
  • Loading branch information
jinliu9508 authored Nov 22, 2024
2 parents 00f6977 + a9442ab commit 9c0b6b5
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 9c0b6b5

Please sign in to comment.