Skip to content

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpatrick committed May 31, 2024
1 parent 14decf6 commit 0befb73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Migration guides

## 3.11.x to 3.12.x
- The `Radar.trackVerifiedToken()` method has been removed, and the `Radar.trackVerified()` callback now returns `token: RadarVerifiedLocationToken`, which includes `user`, `events`, `expiresAt`, `expiresIn`, and `passed`.
- Instead of calling `Radar.trackVerified()`, which always fetches a fresh location token, you can now call `Radar.getVerifiedLocationToken()`, which returns a cached location token if the last location token is still valid. You can also call `Radar.startTrackingVerified()` to fetch and cache location tokens in the background automatically.
- The `Radar.trackVerified()` method now returns `token: RadarVerifiedLocationToken`, which includes `user`, `events`, `token,`, `expiresAt`, `expiresIn`, and `passed`. The `Radar.trackVerifiedToken()` method has been removed, since `Radar.trackVerified()` now returns a signed JWT.

```swift
// 3.12.x
Expand Down

0 comments on commit 0befb73

Please sign in to comment.