mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-14 04:48:35 -07:00
bearer: close open jwt key files
This commit is contained in:
@@ -112,6 +112,7 @@ func (j *JWTAuthTokenConfig) keyBytes() (result []byte, err error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer o.Close()
|
||||
return io.ReadAll(o)
|
||||
}
|
||||
if j.KeyString != "" {
|
||||
|
||||
Reference in New Issue
Block a user