Update token/invocation/options.go

Co-authored-by: Michael Muré <batolettre@gmail.com>
Signed-off-by: Steve Moyer <smoyer64@gmail.com>
This commit is contained in:
Steve Moyer
2025-03-11 12:57:08 -04:00
committed by GitHub
parent 05c2573d95
commit fbf55e98ba

View File

@@ -129,7 +129,7 @@ func WithExpirationIn(after time.Duration) Option {
// If this Option is not provided, the invocation Token's iat field will
// be set to the value of time.Now(). If you want to create an invocation
// Token without this field being set, use the WithoutInvokedAt Option.
func WithInvokedAt(iat time.Time) Option {
func WithIssuedAt(iat time.Time) Option {
return func(t *Token) error {
t.issuedAt = &iat