Skip to content

Commit

Permalink
Paseto: Fix wrong response
Browse files Browse the repository at this point in the history
  • Loading branch information
inciner8r authored Apr 22, 2024
1 parent 385890e commit 86027a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1/authenticate/paseto/paseto.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ func PASETO(c *gin.Context) {
defer resp.Body.Close()
var responseBody webappResponse
err = json.NewDecoder(resp.Body).Decode(&responseBody)
fmt.Println("Wallet Address: ", responseBody.WalletAddress)
fmt.Println("Wallet Address: ", responseBody.Payload.WalletAddress)
if err != nil {
fmt.Printf("Failed to decode response body: %s\n", err)
return
} else {
c.Set("walletAddress", responseBody.WalletAddress)
c.Set("walletAddress", responseBody.Payload.WalletAddress)
c.Next()
}
// parser := gopaseto.NewParser()
Expand Down

0 comments on commit 86027a1

Please sign in to comment.