Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tsawler committed Sep 25, 2022
1 parent 293abe3 commit 9e4d9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jot.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ type Claims struct {
jwt.RegisteredClaims
}

// New returns an instance of Auth, with sensible defaults where possible.
// New returns an instance of Auth, with sensible defaults where possible. Naturally,
// any of defaults can be overridden, if necessary.
func New(d string) Auth {
return Auth{
Issuer: d,
Expand All @@ -48,6 +49,7 @@ func New(d string) Auth {
RefreshExpiry: time.Hour * 24,
CookieName: "__Host-refresh_token",
CookiePath: "/",
CookieDomain: d,
}
}

Expand Down

0 comments on commit 9e4d9c0

Please sign in to comment.