Passing pushauth flag as bool in json body to internal api doesn't become a...
Compare changes
- kmcknight authored
Remove requirement to pass push_auth flag via internal API body. Also split internal OTP validate API into two separate calls: one for manual OTP, the other for push
Conflict: This file was modified in both the source and target branches.
Ask someone with write access to resolve it.
@@ -4,7 +4,6 @@ import (
@@ -27,7 +26,6 @@ type RequestBody struct {
@@ -40,12 +38,12 @@ func NewClient(config *config.Config) (*Client, error) {
@@ -56,12 +54,12 @@ func (c *Client) VerifyOTP(ctx context.Context, args *commandargs.Shell, otp str
@@ -83,7 +81,7 @@ func parse(hr *http.Response) (bool, string, error) {
@@ -92,7 +90,7 @@ func (c *Client) getRequestBody(ctx context.Context, args *commandargs.Shell, ot
@@ -100,7 +98,7 @@ func (c *Client) getRequestBody(ctx context.Context, args *commandargs.Shell, ot