class RubyConversations::Client
def refresh_static_jwt
def refresh_static_jwt @jwt_expiration = Time.now.to_i + 3600 # 1 hour payload = { exp: @jwt_expiration, iat: Time.now.to_i } @jwt_token = JWT.encode(payload, @jwt_secret, 'HS256') end
def refresh_static_jwt @jwt_expiration = Time.now.to_i + 3600 # 1 hour payload = { exp: @jwt_expiration, iat: Time.now.to_i } @jwt_token = JWT.encode(payload, @jwt_secret, 'HS256') end