Skip to content

Commit

Permalink
add time for memory key
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Feb 15, 2024
1 parent 469d3ec commit 4640259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (m *Memory) RotateKeys(ctx context.Context) error {
if err != nil {
return err
}
keys.CreatedAt = time.Now()
// private key is needed only in newest which are used to generate new tokens
for i := range m.keys {
m.keys[i].PrivateKey = nil
Expand Down

0 comments on commit 4640259

Please sign in to comment.