test expose style
This commit is contained in:
parent
8f09e50172
commit
c9fd7baf9d
5 changed files with 25 additions and 13 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"recipe-manager/config"
|
||||
|
|
@ -60,6 +61,9 @@ func (ar *AuthRouter) Route(r chi.Router) {
|
|||
var redirectTo string
|
||||
var kind string
|
||||
state := r.URL.Query().Get("state")
|
||||
|
||||
fmt.Println("url query", r.URL.Query())
|
||||
|
||||
if state == "" {
|
||||
http.Error(w, "State not found", http.StatusBadRequest)
|
||||
return
|
||||
|
|
@ -71,6 +75,8 @@ func (ar *AuthRouter) Route(r chi.Router) {
|
|||
return
|
||||
}
|
||||
|
||||
fmt.Println("val", val)
|
||||
|
||||
redirectTo = val["redirect_to"]
|
||||
kind = val["kind"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue