mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 00:19:29 +01:00
bearer: close open jwt key files
This commit is contained in:
parent
ee7f818674
commit
7afd6dbc74
@ -112,6 +112,7 @@ func (j *JWTAuthTokenConfig) keyBytes() (result []byte, err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer o.Close()
|
||||||
return io.ReadAll(o)
|
return io.ReadAll(o)
|
||||||
}
|
}
|
||||||
if j.KeyString != "" {
|
if j.KeyString != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user