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

Add wrappers with default values for MFA methods #583

Merged
merged 2 commits into from
Dec 9, 2021
Merged

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Dec 9, 2021

Changes

In Authentication.swift, all the methods that have optional parameters have wrappers in an extension to provide default values. There a were a couple of methods that did not have said wrapper:

  • login(withOOBCode:mfaToken:bindingCode:), in which bindingCode is optional.
  • multifactorChallenge(mfaToken:types:authenticatorId:), in which types and authenticatorId are optional.

This PR adds wrappers for those methods.

Testing

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@Widcket Widcket requested a review from a team as a code owner December 9, 2021 00:57
@Widcket Widcket added the review:small Small review label Dec 9, 2021
@Widcket Widcket merged commit 9e9bff5 into beta Dec 9, 2021
@Widcket Widcket deleted the v2/mfa-wrappers branch December 9, 2021 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants