update(application method delete_applications)

This commit is contained in:
DeniskaRediska committed 2019-11-14 13:52:52 +03:00
1 parent c9334e651b
commit 293a9def27
8 files changed
+96 -69

No files matched your search

+2 -2
View File
@@ -17,11 +17,11 @@ var Jwt jwtService
type jwtService struct{}
func (s jwtService) Generate(appId int32, expTime int64) (string, error) {
func (s jwtService) CreateApplication(appId int32, expTime int64) (string, error) {
var (
claims = jwt.MapClaims{}
created = time.Now()
secret = config.GetRemote().(*conf.RemoteConfig).SecretKey
secret = config.GetRemote().(*conf.RemoteConfig).ApplicationSecret
)
claims["appId"] = appId