doc: Mark Users.GetPending as deprecated #118
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With the Users Search endpoint, you can get all of your pending users by adding a
Status: "pending"
filter. This can replace any and all existing calls to the Get Pending Users endpoint.The Search method also supports more filters to further constrain results. This library also provides a SearchAll convenience helper for iterating through all the results of a search.
We'd like to remove the GetPending method from this library to limit our maintenance work and remove some complexity for customers.
This marks the GetPending method as deprecated. It will be removed in the next major version of stytch-go.
Migration Guide
This migrates from GetPending to SearchAll, which has a cleaner iteration pattern:
Before
After
If you prefer to keep the same iteration pattern that GetPending has, use Search directly instead: