Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a typo in the public API addUserInvalidatedListener #2218

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading