From c03fb8ebd613a99848f174b19014a01ce494ff84 Mon Sep 17 00:00:00 2001 From: Rajat Bajaj Date: Mon, 9 Dec 2024 10:57:41 +0530 Subject: [PATCH] make generate,lint --- authentication/ciba.go | 3 ++- authentication/ciba/ciba.go | 4 ++-- authentication/ciba_test.go | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/authentication/ciba.go b/authentication/ciba.go index 9e1083e8..aca941c0 100644 --- a/authentication/ciba.go +++ b/authentication/ciba.go @@ -4,9 +4,10 @@ import ( "context" "encoding/json" "fmt" - "github.com/auth0/go-auth0/authentication/ciba" "net/url" "strings" + + "github.com/auth0/go-auth0/authentication/ciba" ) // CIBA manager. diff --git a/authentication/ciba/ciba.go b/authentication/ciba/ciba.go index ebab84e0..714b4734 100644 --- a/authentication/ciba/ciba.go +++ b/authentication/ciba/ciba.go @@ -1,6 +1,6 @@ package ciba -// Request defines the request body for calling the bc-authorize endpoint +// Request defines the request body for calling the bc-authorize endpoint. type Request struct { // The client_id of your client. ClientID string `json:"client_id,omitempty"` @@ -14,7 +14,7 @@ type Request struct { BindingMessage string `json:"binding_message,omitempty"` } -// Response defines the response of the CIBA request +// Response defines the response of the CIBA request. type Response struct { AuthReqID string `json:"auth_req_id,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` diff --git a/authentication/ciba_test.go b/authentication/ciba_test.go index 65c0ec58..a52d6e6c 100644 --- a/authentication/ciba_test.go +++ b/authentication/ciba_test.go @@ -2,10 +2,12 @@ package authentication import ( "context" - "github.com/auth0/go-auth0/authentication/ciba" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" + + "github.com/auth0/go-auth0/authentication/ciba" ) func TestCIBA_Initiate(t *testing.T) {