mirror of
https://forgejo.merr.is/annika/jwtauth.git
synced 2025-12-13 10:37:44 -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
|
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 {
|
func (c Claims) SetIssuedAt(tm time.Time) Claims {
|
||||||
c["iat"] = tm.UTC().Unix()
|
c["iat"] = tm.UTC().Unix()
|
||||||
return c
|
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 {
|
func (c Claims) SetIssuedNow() Claims {
|
||||||
c["iat"] = EpochNow()
|
c["iat"] = EpochNow()
|
||||||
return c
|
return c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue