3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-14 16:09:32 +01:00

bearer: close open jwt key files

This commit is contained in:
Shivaram Lingamneni 2024-02-13 21:32:37 -05:00
parent ee7f818674
commit 7afd6dbc74

View File

@ -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 != "" {