mirror of
https://forgejo.merr.is/annika/jwtauth.git
synced 2025-12-11 13:47:41 -05:00
Typo
This commit is contained in:
parent
079feacddb
commit
4db4f7e78f
1 changed files with 2 additions and 2 deletions
|
|
@ -217,13 +217,13 @@ func (c Claims) Get(k string) (interface{}, bool) {
|
|||
return v, ok
|
||||
}
|
||||
|
||||
// Set issues at ("iat") to specified time in the claims
|
||||
// Set issued at ("iat") to specified time in the claims
|
||||
func (c Claims) SetIssuedAt(tm time.Time) Claims {
|
||||
c["iat"] = tm.UTC().Unix()
|
||||
return c
|
||||
}
|
||||
|
||||
// Set issues at ("iat") to present time in the claims
|
||||
// Set issued at ("iat") to present time in the claims
|
||||
func (c Claims) SetIssuedNow() Claims {
|
||||
c["iat"] = EpochNow()
|
||||
return c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue