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

Use struct type for request params #202

Merged
merged 3 commits into from
Dec 31, 2024

Conversation

jennifer-stytch
Copy link
Contributor

This PR modifies the NewRequest and RawRequest interfaces to use a RequestParams struct rather than accepting all of the arguments individually. This will make it easier to add new parameters in the future.

This is marked as a minor version change rather than major since the affected functions are only meant for internal use.

The only actual code changes are stytch/stytch.go. The rest are the autogenerated changes to usages of NewRequest and RawRequest, various docs updates, and a couple of new authentication factors.

@jennifer-stytch jennifer-stytch requested a review from a team as a code owner December 31, 2024 19:23
@jennifer-stytch jennifer-stytch merged commit 2c33fa6 into main Dec 31, 2024
5 checks passed
@jennifer-stytch jennifer-stytch deleted the jmccleary/request-struct-type branch December 31, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants