mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
add MFA structs, Make Callback Public
This commit is contained in:
parent
21c833b742
commit
f01926b1c5
3 changed files with 17 additions and 3 deletions
|
@ -29,7 +29,8 @@ type Client struct {
|
|||
userPublicKey string
|
||||
userID string
|
||||
|
||||
mfaCallback func(c *Client, res *APIResponse) error
|
||||
// used for solving MFA challanges. You can block this to for example wait for user input. You shouden't run any unrelated API Calls while you are in this callback.
|
||||
MFACallback func(ctx context.Context, c *Client, res *APIResponse) error
|
||||
|
||||
// Enable Debug Logging
|
||||
Debug bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue