Skip to content

Conversation

xZise
Copy link

@xZise xZise commented Nov 23, 2024

This adds support for extracting the different values from an Uri for an Otp. It only accepts valid input combinations/values and failes whenever it doesn't look like an correct uri.

@xZise
Copy link
Author

xZise commented Nov 23, 2024

I implemented it for the constructor but maybe it should be a static method like TryParse() or Parse. I was also thinking about whether to not fail as hard with issues (e.g. when providing a counter to when using TOTP) or to disable the exceptions via a parameter.

This might also implement #66.

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.

1 participant