David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 9 years ago on Rails API - Authentication with JWT :

You can change the default expiration. See the initializer at

https://github.com/nsarno/knock/blob/master/lib/generators/templates/knock.rb

  ## Expiration claim
  ## ----------------
  ##
  ## How long before a token is expired. If nil is provided, token will
  ## last forever.
  ##
  ## Default:
  # config.token_lifetime = 1.day

You should be able to set the token_lifetime to nil to make the token never expire if that is a requirement as well.

config.token_lifetime = nil

David Kimura PRO said over 9 years ago on Rails API Basics :

It was just a normal "default" install as what can be found in the README; customizations with controllers, models, config, etc. were not done. 


David Kimura PRO said over 9 years ago on Meta Tags :

Thanks for pointing this out! I've pushed up a patch and this should be fixed now.


David Kimura PRO said over 9 years ago on Periodic Tasks with sidekiq-cron :

You could. However, I would only do this if you need tasks ran on all of the web servers. The two should not conflict with each other.


David Kimura PRO said over 9 years ago on Periodic Tasks with sidekiq-cron :

sidekiq-cron is a separate, third-party addon for sidekiq. It does not require Pro/Enterprise. My reference in the video was meant to say that without this gem (or another third-party), and to still have the periodic task functionality, you would have to use Pro/Enterprise.