feat: custom token expires in

This commit is contained in:
Noah Hsu
2022-09-27 14:05:00 +08:00
parent b7479651e1
commit 9d9c79179b
3 changed files with 18 additions and 19 deletions

View File

@ -1,7 +1,6 @@
package bootstrap
import (
"io/ioutil"
"os"
"path/filepath"
@ -25,7 +24,7 @@ func InitConfig() {
log.Fatalf("failed to create default config file")
}
} else {
configBytes, err := ioutil.ReadFile(flags.Config)
configBytes, err := os.ReadFile(flags.Config)
if err != nil {
log.Fatalf("reading config file error: %+v", err)
}