mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
bearer: close open jwt key files
This commit is contained in:
parent
ee7f818674
commit
7afd6dbc74
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue