Skip to content

Commit

Permalink
Add await to the id getters
Browse files Browse the repository at this point in the history
  • Loading branch information
jennantilla committed Jan 11, 2024
1 parent 4de73f3 commit f2ee508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ The User name space is accessible via `OneSignal.User` and provides access to us
| `OneSignal.User.removeTags(["KEY_01", "KEY_02"]);` | *Remove multiple tags with the provided keys from the current user.* |
| `OneSignal.User.getTags();` | *Returns the local tags for the current user.* |
| `OneSignal.User.addEventListener("change", (event: UserChangedState) => void);` <br><br>***See below for usage*** | *Add a User State callback which contains the nullable onesignalId and externalId. The listener will be fired when these values change.* |
| `OneSignal.User.getOnesignalId();` | *Returns the nullable OneSignal ID for the current user.* |
| `OneSignal.User.getExternalId();` | *Returns the nullable external ID for the current user.* |
| `await OneSignal.User.getOnesignalId();` | *Returns the nullable OneSignal ID for the current user.* |
| `await OneSignal.User.getExternalId();` | *Returns the nullable external ID for the current user.* |

### User State Listener

Expand Down

0 comments on commit f2ee508

Please sign in to comment.