Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
gofeuer committed Aug 8, 2024
1 parent 699eda5 commit fc784cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ To use L402 Core you need to provide the L402 middleware a couple of components:

### An implementation of `l402.MacaroonMinter`

The minter is used by the authorization handler to provide the user a new set of macaroons and an invoice.
The minter is used by the authentication handler to provide the user a new set of macaroons and an invoice.

```go
type YourMacaroonMinter struct {
Expand All @@ -66,7 +66,7 @@ func (m YourMacaroonMinter) MintWithChallenge(r *http.Request) (string, l402.Cha
ID: id, // An unique ID assigned to this macaroon
})

rootKey := []byte("{secret_key}") // A secret key that is used to singn and verify your macaroons
rootKey := []byte("{secret_key}") // A secret key that is used to sign and verify your macaroons

// Create a macaroon that when paid gives access to the resouce requested by: (r *http.Request)
mac, _ := macaroon.New(rootKey, macaroonID, "", macaroon.LatestVersion)
Expand Down

0 comments on commit fc784cc

Please sign in to comment.