Skip to content

Commit

Permalink
chore: increase token expired duration
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Oct 28, 2023
1 parent 565ea53 commit 102acc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/grpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func run() error {
if err != nil {
return errors.New(fmt.Sprintf("unable to listen to the port: %v", err))
}
tokenSvc := token.NewService(([]byte)(config.Secret), 3600)
tokenSvc := token.NewService(([]byte)(config.Secret), 864000)
authInterceptor := interceptor.NewAuthInterceptor(tokenSvc)
server := grpc.NewServer(grpc.UnaryInterceptor(authInterceptor.Unary()))
ctx := context.Background()
Expand Down

0 comments on commit 102acc2

Please sign in to comment.