Feat: Add JWT config, auth middleware, and token parsing using username.
Signed-off-by: Goldbro233 <bowensun_06@outlook.com>
This commit is contained in:
@@ -22,6 +22,9 @@ type Config struct {
|
||||
Bcrypt struct {
|
||||
Cost int
|
||||
}
|
||||
Jwtconfig struct {
|
||||
Secret string
|
||||
}
|
||||
}
|
||||
|
||||
var AppConfig *Config
|
||||
|
||||
Reference in New Issue
Block a user